Re:Banned C standard library functions in Git source code
by saagarjha on Sunday August 25, 2019 @01:35PM
(#20794254)
It encourages spaghetti code.
[ Parent
| on HN ]
Re:Banned C standard library functions in Git source code
by Someone1234 on Sunday August 25, 2019 @02:06PM
(#20794470)
Not using it can also create spaghetti code. For example the "alternatives" often suggesting for exiting a multi-tiered loop (which often add additional boilerplate, additional variables, etc that all need to be maintained/bug free).
Re:Banned C standard library functions in Git source code
by FartyMcFarter on Sunday August 25, 2019 @02:13PM
(#20794503)
Indeed. Despite not having actual goto, Java went out of their way to have labeled loops and the "break label_name" syntax in order to avoid this awkwardness.
Re:Banned C standard library functions in Git source code
by jjuhl on Sunday August 25, 2019 @03:09PM
(#20794851)
[RAII](https://en.cppreference.com/w/cpp/language/raii) to the rescue..