[Python-ideas] allow `lambda' to be spelled λ
SW
walker_s at hotmail.co.uk
Thu Jul 14 09:49:04 EDT 2016
Ah, yes, sorry- it certainly holds that meaning to me as well. I agree
with your stated views on this (and ratings):
-1 on using backslash for this.
-0 on λ.
Thanks,
S
On 14/07/16 14:27, Chris Angelico wrote:
> On Thu, Jul 14, 2016 at 11:22 PM, SW <walker_s at hotmail.co.uk> wrote:
>> To me the backslash already has a fairly strong association with "the
>> next character is a literal". Overloading it would feel very strange.
> But it also has the meaning of "the next character is special", such
> as \n for newline or \uNNNN for a Unicode escape. However, I suspect
> there might be a parsing conflict:
>
> do_stuff(stuff_with_long_name, more_stuff, what_is_next_arg, \
>
> At that point in the parsing, are you looking at a lambda function or
> a line continuation? Sure, style guides would decry this (put the
> backslash with its function, dummy!), but the parser can't depend on
> style guides being followed.
>
> -1 on using backslash for this.
> -0 on λ.
>
> ChrisA
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
More information about the Python-ideas
mailing list