Hello BGB,

Sunday, July 17, 2011, 2:51:40 PM, you wrote:

> for example, if/while/for/... don't mean goto shouldn't exist in a 
> language or should be branded as "evil" as a result, rather they provide
> better alternatives such that things like goto are more of a "break 
> glass in case of emergency" feature (or can be taken as a sign that, 
> when one finds themselves using it, then likely things have already gone
> fairly far south as far as this particular code is concerned...).

Won't speak about other languages, but in C the goto is very useful
and actually when properly used can make code much cleaner.
It seems thought that it happens most around kernel code and kernel
drivers to free resources on failure for example:

http://tomoyo.sourceforge.jp/cgi-bin/lxr/source/drivers/crypto/geode-aes.c#L518

-- 
Best regards,
 Derek                            mailto:tak...@takeda.tk

Black holes are where God divided by zero


_______________________________________________
fonc mailing list
fonc@vpri.org
http://vpri.org/mailman/listinfo/fonc

Reply via email to