lambdak: multi-line lambda implementation in native Python

Danilo Coccia daniloco at acm.org
Sat Jan 17 15:20:30 CET 2015


Il 17/01/2015 12.07, Marko Rauhamaa ha scritto:
> Jussi Piitulainen <jpiitula at ling.helsinki.fi>:
> 
>>  a+ b  => 7  # a() + b
>>  a +b  => 3  # a(+b)   => a(b) => a(1) = 1 + 2
>>
>> I'm not quite fond of such surprise in programming language syntax.
> 
> Yes, whoever came up with the idea of whitespace having syntactic
> significance!
> 
> 
> Marko
> 

Maybe you already knew this "esoteric" language:
  http://compsoc.dur.ac.uk/whitespace/
  https://en.wikipedia.org/wiki/Whitespace_%28programming_language%29

And, just for completeness :) http://www.stroustrup.com/whitespace98.pdf



More information about the Python-list mailing list