3 ms·
!reflexive, I promise you. Based not on Dijkstra's paper, but my own horror stories.
by edw519 17y ago
!reflexive, I promise you. Based not on Dijkstra's paper, but my own horror stories.
- tc 17y agoI know, I know; I've read bad code too. But I've also read plenty of bad code in languages that don't have goto. Copy-and-paste coding and reckless abuse of globals are worse and more prevalent than goto abuse in my experience. Besides, I object to bondage and discipline in a programming language. If people don't have guns, then they'll use....
- benmathes 17y ago...a baseball bat, which while possible of inflicting terminal injuries isn't quite as good at it, lowering the number of deaths. The analogy still holds :-) edit: I mean to say literally that GOTOs certainly are useful, but are far easier to create spaghetti code with than something much safer like functions. It's a cost/benefit analysis.
- eru 17y agoI can code perfectly fine (and mind-blowing) spaghetti code with call/cc, too.