by waynecochran · 9y ago · 0 comments
$ find . -name "*.c" -exec grep goto {} \; -print | wc -l
8701
Most of it to unify releasing resources on function returns to one place at the end of the function body. This is what makes RAII in C++ so important/convenient.It's interesting how Dijkstra's take on the use of goto has blinded a large number of developers on the practicalities of its use.
This reminds me of the C++ developer who, when asked what his favorite snippet of C++ source code was, replied with:
}