[Python-ideas] Why shouldn't Python be better at implementing Domain Specific Languages?

Paul Moore p.f.moore at gmail.com
Fri Aug 31 05:12:31 EDT 2018


On Fri, 31 Aug 2018 at 06:36, Steven D'Aprano <steve at 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


More information about the Python-ideas mailing list