3 ms·
GOTO can be quite reasonable when dealing with a language that lacks exceptions. The Linux kernel CodingStyle document says: "The goto statement comes in hand
by dllthomas 14y ago
GOTO can be quite reasonable when dealing with a language that lacks exceptions. The Linux kernel CodingStyle document says:
"The goto statement comes in handy when a function exits from multiple locations and some common work such as cleanup has to be done."
http://www.kernel.org/doc/Documentation/CodingStyle http://www.kernel.org/doc/Documentation/CodingStyle