Commit Graph

5 Commits

Author SHA1 Message Date
Edmond Liu
53470d2fd8 Update index.md (#36349)
Removed some statements talking about the optimization potential of goto (which is mentioned but never specified), and I gave a possible use-case for goto followed by some constructs that can replace it, and ended on why goto is discouraged in C++

Added information about the memory behaviour of labels, the syntax to create a label, and where a label can actually be placed (within the same function).
2019-07-15 07:04:27 -07:00
KartikSoneji
72be29068a Added info; Fixed formatting; (#36329)
Added note on Scope
Fixed formatting of example and added better way to rewrite example.
2019-07-15 06:31:54 -07:00
Nischay Hegde
321ee3e69d Changed the file to reflect standards (#27542)
* Changed the file to reflect standards

`goto` is generally discouraged for use in C++, which wasn't what this was saying. Dijkstra even [said](http://www.u.arizona.edu/~rubinson/copyright_violations/Go_To_Considered_Harmful.html), "The go to statement as it stands is just too primitive; it is too much an invitation to make a mess of one's program." in 1968. This file seemed to indicate the opposite.

* fix: fixed grammar
2019-06-24 15:24:30 -07:00
Shardic1
e815d86998 Fixed some typos. (#26132) 2018-10-22 21:49:25 -04:00
Mrugesh Mohapatra
da0df12ab7 fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30