Goto (Posting On Python-List Prohibited)

Gregory Ewing greg.ewing at canterbury.ac.nz
Sat Dec 30 18:22:14 EST 2017


Stefan Ram wrote:
>   BASIC has
> 
> DEF FN...
> 
>   which /can/ define actual subroutines, limited to expressions.
> 
>   Now, what does this limitation remind me of?

The equivalent limitation in Python is nowhere near as bad,
since if you outgrow what lambda can do you can always
use a def instead. BASIC didn't have that option (unless
you were using one of the more advanced dialects, such
as BBC BASIC, which had a PROC statement).

-- 
Greg



More information about the Python-list mailing list