[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: call/cc
Joe Marshall writes
>
> I don't find the excess noise that distracting in Scheme, but I really
> wish there was a truly concise syntax for lambda expressions,
> especially if they are to be used for CPS. In other languages (such
> as Java), the amount of excess noise is horrendous.
:-> could be a particularly happy replacement for
lambda.
It is a prefix version of the f : A -> B
notation familiar from mathematics.
Example:
(:-> (x) x)
is the identity function, which can also
be written as
(:-> (<-:) <-:)
--d