guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: λ the ultimate showcase


From: Ludovic Courtès
Subject: Re: λ the ultimate showcase
Date: Thu, 10 Sep 2009 23:46:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Neil Jerram <address@hidden> writes:

> address@hidden (Ludovic Courtès) writes:
>
>> Hey,
>>
>> Now that we have Unicode, let’s not put it to good use!
>>
>>   (define-syntax λ
>>     (syntax-rules ()
>>       ((_ formals body ...)
>>        (lambda formals body ...))))
>
> Can it be overridden?

Yes.  In the end it boils down to ‘module-define!’.

> Just in case someone writes an algorithm where they'd really like to
> have λ as a variable?

One can always use ‘λ’ or ‘lambda’ as a local variable name:

  (let ((λ 2))
    (+ λ 3))

> If the answer to the above is Yes, definitely.

Cool, let’s do it!  :-)

(Then we’ll want “’” for ‘quote’, “‘” for ‘quasiquote’, etc. etc.)

Thanks,
Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]