3 ms·
If you could elimiate the outermost braces and have a line continuation character you might get something even less intimidating. In other words anything betw
by Tloewald 12y ago
If you could elimiate the outermost braces and have a line
continuation character you might get something even less intimidating.
In other words anything between two auccessive non escaped line endings is treated as being parenthesized. Suddenly you can write lisp without parens everywhere.
- akkartik 12y agoLike this toy lisp of mine: http://akkartik.name/post/wart http://akkartik.name/post/wart
- jarcane 12y agoIt's an interesting idea. I'd have to study up a lot more on how to do reader macroing in Racket. Mostly I was more focused on terminology (going forward my naming policy will be to favor BASIC names over Lisp ones, same reason why print is display in Heresy), and on providing a kind of 'nutrasweet' Lisp rather than a full blown functional BASIC dialect (which is as yet beyond my skills with the language).
- axblount 12y agoThere's an SRFI that outlines an indentation based Scheme syntax called Sweet-expressions. It also adds infix operations. http://srfi.schemers.org/srfi-110/srfi-110.html http://srfi.schemers.org/srfi-110/srfi-110.html
- jarcane 12y agoInteresting, turns out there is a version of this for Racket: https://github.com/takikawa/sweet-racket https://github.com/takikawa/sweet-racket I will have to take a gander and see if it's compatible.