|
|
|
|
|
by jiyinyiyong
1593 days ago
|
|
To explore ways of bringing Lisp to wider ranges of audiences, I prefer indentation based syntax like: ->
range 100
map $ fn (x)
* x x
foldl 0 &+
println
which is S-Expressions with indentations, with in-line paren pairs. It looks a lot like Python by still using prefixed operators and it's still S-Expressions after parsing to remain homoiconic.And my prototype language http://calcit-lang.org/ . |
|
[1] I like having a bar | open a parenthesis that closes automatically when the line or group ends.
[2] There are many Lisp/Scheme constructions that jump two deep without an intervening symbol. Rather that having to count out indents, it's very helpful and readable to have a dummy symbol as skeleton to reify the parenthesis structure. I like $ from Haskell.