3 ms·
I was under the impression that the addition of "goto" was a joke. Are people actually using it? While there are legitimate uses for "goto," they are pretty m
by humbledrone 17y ago
I was under the impression that the addition of "goto" was a joke. Are people actually using it? While there are legitimate uses for "goto," they are pretty much isolated to low-level C code, and are made unnecessary in a language that supports exceptions...
- huhtenberg 17y agoExceptions vs. goto-based cleanup is purely a matter of personal programming taste and habits. Gotos exist because there are people who find them convenient, and not because gotos are "legitimate" in the context of that particular programming language. Making the language minimalistic is never a goal of a language design unless it's a Brainfuck. If it were a goal, there would've not been three loop constructs in any modern languages.
- silentOpen 17y agohttp://barker.linguistics.fas.nyu.edu/Stuff/Iota/ http://barker.linguistics.fas.nyu.edu/Stuff/Iota/
- eru 17y agoScheme does not have _any_ loop constructs. Neither does Haskell. (Apart from the standard library. There you find some `simulators' of loops.)
- deleted 17y ago[deleted]