Re:Sweet-expressions: A readable format for Lisp-like languages
by aufreak3 on Friday November 26, 2010 @12:59AM
(#1941735)
Thanks for that pointer. I never expected Shriram to propose one :) The parens are quite acceptable if you use syntax coloring options in DrRacket to make them light grey, which is what I do. Imo, P4P is just not worth the learning delta .. particularly because it doesn't solve the single biggest readability issue - math expressions - which exists even if you make all parens invisible.
In my company, I came up with one myself (http://code.google.com/p/muvee-symbolic-expressions/wiki/Tab...) when some aesthetic objections arose to the use of (paren (laden (scheme))) as a scripting language for our product. It is quite telling that we ended up not using the tab syntax in the end, though it is still available in the product :D
Re:Sweet-expressions: A readable format for Lisp-like languages
by aufreak3 on Friday November 26, 2010 @03:29AM
(#1941903)
Just out of curiosity, I created two gists with the P4P examples coded using the tab syntax I mentioned -
tab-syntax version: https://gist.github.com/716416 scheme-syntax version: https://gist.github.com/716417
I've been meaning to go through it in detail, but to be honest I really like s-expressions, really really. I'd even say the regularity of syntax is one of lisp's greatest features (even Clojure's [] and {} literals are going too far for my taste...)