Re: Paul Graham's Arc is released today... what is the long term impact?
- From: Marco Antoniotti <marcoxa@xxxxxxxxx>
- Date: Tue, 12 Feb 2008 02:02:02 -0800 (PST)
On Feb 11, 5:56 pm, Ron Garret <rNOSPA...@xxxxxxxxxxx> wrote:
In article <8763wvd6p6....@xxxxxxxxx>,
Joost Diepenmaat <jo...@xxxxxxxxx> wrote:
r...@xxxxxxxx (Rob Warnock) writes:
But here's a really twisted one for those with "dumb" terminals:
Instead of using FN to abbreviate LAMBDA, we can use /. which
kinda looks like a lambda is you squint: ;-}
> (defmacro /. (args &body body) `(lambda ,args ,@body))
/.
> (mapcar (/. (x) (* 3 x)) (iota 5))
I like that; it's short, it looks kinda nice and it's only 2 keystrokes.
"fn" is only two keystrokes too, and IMHO looks a lot better (and is
much more reminiscent of "function") than /. (which really ought to be
.\ if you want it to look like a lambda).
rg
Yes, but /. or /_ (looks like an L) are much mure Perlish! Which is
one of the driving forces of programming today.
Cheers
--
Marco
"Perl is the programming language whose design goal is to increase a
programmer's self-esteem" (paraphrase of a Steele-Gosling exchange at
OOPSLA 2007)
.
- Follow-Ups:
- Re: Paul Graham's Arc is released today... what is the long term impact?
- From: Joost Diepenmaat
- Re: Paul Graham's Arc is released today... what is the long term impact?
- From: Thomas F. Bur***
- Re: Paul Graham's Arc is released today... what is the long term impact?
- References:
- Re: Paul Graham's Arc is released today... what is the long term impact?
- From: John Thingstad
- Re: Paul Graham's Arc is released today... what is the long term impact?
- From: Kent M Pitman
- Re: Paul Graham's Arc is released today... what is the long term impact?
- From: John Thingstad
- Re: Paul Graham's Arc is released today... what is the long term impact?
- From: Rob Warnock
- Re: Paul Graham's Arc is released today... what is the long term impact?
- From: Joost Diepenmaat
- Re: Paul Graham's Arc is released today... what is the long term impact?
- From: Ron Garret
- Re: Paul Graham's Arc is released today... what is the long term impact?
- Prev by Date: Re: Qi II preview
- Next by Date: Re: Qi II syntax for sequents
- Previous by thread: Re: Paul Graham's Arc is released today... what is the long term impact?
- Next by thread: Re: Paul Graham's Arc is released today... what is the long term impact?
- Index(es):