Python's simplicity philosophy

Georgy Pruss see_signature__ at hotmail.com
Tue Nov 18 02:24:21 EST 2003


"Terry Reedy" <tjreedy at udel.edu> wrote in message news:sIqdnYBZtKIYFiSi4p2dnA at comcast.com...
|
| "Alex Martelli" <aleax at aleax.it> wrote in message
| news:P75ub.43095$hV.1657519 at news2.tin.it...
| <...>
|
| > > How about a very hypothetical (post ``==repr deprecation)
| > > results = sequence..map(`x+23`)
| >
| > How would this notation imply that x is an argument rather than,
| > say, a global?
|
| The above was a minimal 'concept' proposal to test the aesthetics of
| something structurally different from current 'lambda's.  I think I
| would make all identifiers params by default, since I believe this to
| be more common, and 'tag' non-locals, perhaps with one of the
| reserved, as yet unused symbols.  Example: lambda x: x + y == `x + @y`
| or `x+y@`.   Since expressions cannot assign, no global declaration is
| needed.
|
| Terry

Or maybe
  lambda x: x + y == `x: x + y`

G-:






More information about the Python-list mailing list