Like that WISP example. Indendation here replaces "("
https://wiki.gnome.org/Projects/Genie#Block_Indentation
Same for Python.
Means: Lisp code generally can be stripped off most brackets without losing
"meaning". And it should. For readabilty reasons, public acceptance - and
typing speed: With German Keyboard typing {([ ])}; is no fun!
Happy Easter!
Am Sonntag, 12. April 2020 schrieb <[email protected]>:
> Looks a lot like Sweet[0] or WISP[1] to me!
> They are defined for Scheme, but can be used for any sexprs.
>
>
> Sweet example:
>
> define factorial(n)
> if {n <= 1}
> 1
> {n * factorial{n - 1}}
>
>
> WISP example:
>
> define : factorial n
> __ if : zero? n
> ____ . 1
> ____ * n : factorial {n - 1}
>
>
> [0] https://srfi.schemers.org/srfi-110/srfi-110.html
> [1] https://srfi.schemers.org/srfi-119/srfi-119.html
>
> --
> /c
>
> --
> UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe
>