[Python-ideas] Where-statement (Proposal for function expressions)

Jan Kaliszewski zuo at chopin.edu.pl
Sat Jul 18 13:00:26 CEST 2009


[OT]

Steven D'Aprano <steve at pearwood.info> wrote:

> I've often wondered whether coding would be simpler (at least for
> beginners) if we wrote assignment left-to-right like this:
>
> 2*x + 1 => y
>
> instead of
>
> y = 2*x + 1
>
> That might be a nice experiment for a teaching language some day: does
> left-to-right assignment reduce or eliminate the confusion that
> beginners experience over assignment?
>
> In fact, the more I think about it, the more I like the idea.
>
> Oh yes... Hypertalk does that, only very verbosely:
>
> put 2*x + 1 into y
>
> And doesn't Cobol do something similar?

Chuck does it, and just with '=>' :)
(see: http://chuck.cs.princeton.edu/ )

*j



More information about the Python-ideas mailing list