On Fri, 31 Aug 2018 at 06:36, Steven D'Aprano <st...@pearwood.info> wrote:

> Please no, Ruby has that, and the meaning of expressions depends on
> whether you put whitespace around operators or not.
>
> Given:
>
> def a(x=4)
>     x+2
> end
> b = 1
>
> the result of "a+b" depends on the spaces around the plus sign:
>
> irb(main):005:0> a + b
> => 7
> irb(main):006:0> a +b
> => 3

Ewww. And people complain about *python's* use of significant whitespace???!?!!

Paul
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to