On Thu, May 07, 2020 at 10:44:01PM +1200, Greg Ewing wrote:
> On 7/05/20 9:11 pm, Steven D'Aprano wrote:
> >I'm initially going to use the ancient 1960s
> >Fortran syntax and spell it `.EQ.`.
> >
> >I know that syntax will not work in Python
> >because it will be ambiguous.
>
> I'm sure the new parser will handle it just fine!
Yes, but the *human readers* won't. You know that people will write
things like:
spam.EQ.ham
and then nobody will know whether than means "call the .EQ. operator on
operands spam and ham" or "lookup the ham attribute on the EQ attribute
of spam" without looking up the parsing rules.
Let's not turn into Ruby:
https://lucumr.pocoo.org/2008/7/1/whitespace-sensitivity/
--
Steven
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/TXEYLN6ZUKFX7B4VTW5XRM3VML6CQ5BJ/
Code of Conduct: http://python.org/psf/codeofconduct/