[Python-ideas] Enhance definition of functions
Ron Adam
ron3200 at gmail.com
Wed Jul 31 00:59:43 CEST 2013
On 07/30/2013 05:22 PM, Nick Coghlan wrote:
> On 31 Jul 2013 04:48, "Ronald Oussoren"
> <ronaldoussoren at mac.com
> <mailto:ronaldoussoren at mac.com>> wrote:
> >
> >
> > On 30 Jul, 2013, at 20:30, Ryan
> <rymg19 at gmail.com
> <mailto:rymg19 at gmail.com>> wrote:
> >
> > > How about something like:
> > >
> > > f = indef(x, y): print x, y
> > >
> > How is that different from a lambda?
>
> And, since assignments are statements, different from def?
Or the old "let" statement.
While writing a little bytecode interpreter in python, (To try some ideas
out.), I found out it's much easier to parse source code if a line starts
with a statement keyword such as 'let' or 'def'. And I suspect is why
early languages followed that pattern.
Cheers,
Ron
More information about the Python-ideas
mailing list