Ruby 1.9 and Lambda Calculus
53cr.com
53cr.com
Interesting. Why? Personally I would radically prefer the λ and any competent editor could make it a single keystroke if it doesn't already.
I really wish we did use more unicode in our source code. "≠", for example, is much clearer to me than "!=".
There's also the literate programming route: enter the code as ASCII, then run it through a processor to generate a prettier document for reading.
->(f){f.(3)}.(->(x){x+2})
vs (lambda f: f(3))(lambda x: x+2)
the first one(ruby) requires me to press the shift key 6 times, the python version only 2, but on the other hand i have to write "lambda" twice. I say they are even :) ((lambda (f) (f 3))(lambda (x) (+ x 2)))Actually, I do prefer ASCII for anything that isn't already a convention in math -- parens to group expressions, curly braces for sets, etc.