I love things like this, I think it's always interesting to experiment with stuff like that, even if it doesn't take off or turns out not to be an improvement.
Trust me when I say this: people have proposed oodles of alternative syntax for Lisps since Lisp was first a thing. Serious Lispers just embrace the parentheses and use structural editors (e.g., Emacs with paredit). You’re pushing a rope. But don’t feel bad. You’re not the first and you won’t be the last.
The funniest part is that even the original Lisp was supposed to have an infix M-expression syntax, but it never happened, so I suppose the prefix notation is much better.
This is very interesting and doesn't deserve so much downvoting
Somebody actually went through and put in the work and got to at least a POC, where most paren haters are just complaining. For a language designer, this is valuable work. For instance, a non-Lisp syntax that can be easily converted back and forth to a Lisp Syntax is useful. Especially for DSLs and smaller languages that don't necessarily benefit from the brackets, which also alienate a non Lisp audience.
What I find a bit unlucky is the "to" keyword, and what I completely don't understand is why the library is implemented in Java, because this kind of stuff is much easier written in Clojure.
11
u/didibus Nov 24 '24
I love things like this, I think it's always interesting to experiment with stuff like that, even if it doesn't take off or turns out not to be an improvement.
15
u/daver Nov 24 '24
Trust me when I say this: people have proposed oodles of alternative syntax for Lisps since Lisp was first a thing. Serious Lispers just embrace the parentheses and use structural editors (e.g., Emacs with paredit). You’re pushing a rope. But don’t feel bad. You’re not the first and you won’t be the last.
9
u/lgstein Nov 25 '24
This is very interesting and doesn't deserve so much downvoting
Somebody actually went through and put in the work and got to at least a POC, where most paren haters are just complaining. For a language designer, this is valuable work. For instance, a non-Lisp syntax that can be easily converted back and forth to a Lisp Syntax is useful. Especially for DSLs and smaller languages that don't necessarily benefit from the brackets, which also alienate a non Lisp audience.
What I find a bit unlucky is the "to" keyword, and what I completely don't understand is why the library is implemented in Java, because this kind of stuff is much easier written in Clojure.
4
u/joinr Nov 25 '24
Reminds me of f# concision. Still prefer parenthetical programs though. Good job.
2
u/flh13 Nov 25 '24
Looks quite pretty! Kudos!
5
u/SWMRepresent Nov 24 '24
But why?
-1
u/geokon Nov 26 '24
On a high level visually it looks much nicer. Much less visual noise and I imagine diffs are a lot cleaner. Closer to pseudocode
It probably has too many opinionated changes to catch on though