[Kamailio-Devel] Use of goto

Raúl Alexis Betancor Santana rabs at dimension-virtual.com
Tue Jan 27 22:39:51 CET 2009


El Martes, 27 de Enero de 2009 21:13, Daniel Corbe escribió:
> You should read http://kerneltrap.org/node/553/2131
> There's plenty of cases where goto is justified and certainly branching out
> into error conditions is one of them.  At least on the intel architecture
> goto typically translates 1:1 to the jmp instruction and is monumentally
> more efficient than constructing complex and hard to understand loops.

Goto statements should be avoided, it's not a matter of how much time it takes 
to "goto", it's a matter readability of the code

-- 
Raúl Alexis Betancor Santana
Dimensión Virtual



More information about the Devel mailing list