Re: Unicode lambda revisited
Jakub T. Jankiewicz 16 Aug 2021 19:10 UTC
In LIPS macros are first class objects, this may change in the future but
right now you can use.
(define λ lambda)
(define def define)
(def foo (λ (x) (* x x)))
It probably make things totally not compatible with any Scheme but I think
that this makes LIPS very flexible.
(define (foo fn) (fn 10))
(define-macro (bar y) `(+ ,y ,y))
(foo bar)
;; ==> 20
But this behaviour may change in the future when there will be expansion time.
Because right now macros are evaluated at runtime, they are like functions
on steroids.
On Mon, 16 Aug 2021 09:54:42 -0300
Jeronimo Pellegrini - j_p at aleph0.info (via srfi-discuss list)
<xxxxxx@srfi.schemers.org> wrote:
> Shiro Kawai <xxxxxx@gmail.com> writes:
>
> > But I don't think we need to accelerate the shift by srfi, either. I
> > expect the shift will happen spontaneously, just like Scheme has adopted
> > the case-sensitive reader, after many existing implementations supported
> > it.
>
> Currently only Guile, Racket and STklos support unicode lambda (and
> Gauche has an ASCII alternative for a quick lambda).
> I just uploaded a survey here:
>
> https://github.com/schemedoc/surveys/blob/master/surveys/UnicodeLambda.md
>
> J.
>
--
Jakub T. Jankiewicz, Web Developer
https://jcubic.pl/me