News for hackers. Stuff that matters.
Re:The Shen programming language by rads on Sunday October 16, 2011 @02:50PM (#3117951)
If you squint (a lot), /. looks like a lambda.
Re:The Shen programming language by anon_c on Sunday October 16, 2011 @03:42PM (#3118097)
Why don't we stop fucking around and just use λx y→x+y?
Re:The Shen programming language by wladimir on Monday October 17, 2011 @02:46AM (#3119447)
I agree. It's sometimes a pity that even with full unicode support nowadays we still resort to 'ASCII art' to express syntax in programming languages, reducing legibility. This is not so much a problem of US keyboards, because code editors could easily support the extra characters as part of the language support.
Re:The Shen programming language by tikhonj on Monday October 17, 2011 @03:17AM (#3119510)
You can just configure your editor to figure out when \x y -> x + y is equal to λx y→x+y and replace the symbols as appropriate.

I have Emacs set up to do this for Haskell, so I really have the best of both worlds (mostly): I can type the former expression but it looks like that latter.

Re:The Shen programming language by pavpanchekha on Sunday October 16, 2011 @09:01PM (#3118812)
Because typing a lambda is not obvious on US keyboards.
Re:The Shen programming language by anon_c on Monday October 17, 2011 @07:17PM (#3122924)
I use RFC 1345 digraphs in vim to type unicode characteres. In RFC 1234, λ is l* and → is ->. To type the above, I just input l_*x y -_>x+y where _ means backspace. This is easy to learn, fast to type, and covers most of the useful unicode characters.
Re:The Shen programming language by gcr on Monday October 17, 2011 @12:40AM (#3119191)
A shame, too. At least decent editors make this a tad easier. DrRacket, for example, binds lambda to Ctrl+\. Racket accepts both "lambda" and "λ" as the same thing, so it's up to personal preference.
Re:The Shen programming language by pavpanchekha on Monday October 17, 2011 @12:25PM (#3121129)
I'm well aware of how DrRacket works; nonetheless, telling a newbie to type "lambda" will lead to typing, and telling them to type a lambda will lead to griping.

Also, the difficulty of typing lambdas also means that writing blogs about code, or documents, or emails, will require even more pain.