Quoting Guido Stepken <gstep...@gmail.com>:

Hi all!

Parenthesis sometimes unneccessarily seem to keep people away from Lisp as
"all day programming language". It's confusing their brain.

How about this "innovative" new Lisp syntax?

https://github.com/birchb1024/genyris/blob/master/examples/queens.g

It's the more readable version, compare to this original version here:

http://obereed.net/queens/algorithm.html

Reminds me a bit of Python or Julia ... or rather - Swift?

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:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to