Re:Banned C standard library functions in Git source code
by nybble41 on Monday August 26, 2019 @12:46PM
(#20801349)
Thank you for the recommendation; that was a very interesting read. I find that I can't quite agree with the last "nontrivial goto" example, though. This version without explicit gotos is actually shorter, and IMHO not really any more difficult to follow:
I will say that any language without goto, or where the use of goto is discouraged, should at least provide guaranteed tail-call elimination as an alternative. In this case the gotos could easily be converted into loops, but not every algorithm is so accommodating.
[ Parent
| on HN ]
There are no comments on this comment yet.