A GOTO example

Isaac To kkto at csis.hku.hk
Sun Mar 14 12:05:10 EST 2004


>>>>> "Josiah" == Josiah Carlson <jcarlson at nospam.uci.edu> writes:

    Josiah> I did slip, but it is still fairly easy to do

This "fairly easy" ignores the possibility that later you need to add or
modify the line that must be executed before the function returns.  Macro
might be a solution, although I consider the goto solution cleaner (doesn't
need a separate language (and thus different indentation rules), won't
pollute the namespace, ease the compiler to reduce compiled code size, etc).

Regards,
Isaac.



More information about the Python-list mailing list