Re: Paul Graham's Arc is released today... what is the long term impact?



På Sun, 10 Feb 2008 23:41:12 +0100, skrev Pascal Bourguignon <pjb@xxxxxxxxxxxxxxxxx>:


And have people wonder how to get that key. And what key's are
useless' depends on the language. and..
I think it's just as well to stick with ASCII..

Not that key, that character. You cannot worry about other people's
keyboards. Some use French AZERTY, some Greek keyboards, some Russian
or Hebrew, etc. Let them worry about how to find a λ character.


Any lisp programmer using emacs can put something like:
(global-set-key (kbd "A-l") (lambda () (interactive) (insert "λ")))
in his ~/.emacs file.

On the other hand, emacs has various input methods, including a greek
one, so you can get λ just switching to the greep input method, and
typing l.

I bind C-f11 to (lambda nil (interactive) (set-input-method (quote greek)))
and use C-\ to switch between greek and the current input method.

But this is just me. You may prefer to use a different keyboard
layout and place λ on some other more practical key.


Yeah. I used to have a few of those to support Norwegian characters ÆØÅæøå.
As for using λ for lambda. I'd just use a modify the reader syntax.
But following Rob Warnock's £ readmacro syntax idea.

(mapcar λ(format "~A:~A" λ1 λ2) list)

--------------
John Thingstad
.



Relevant Pages


Quantcast