4 ms·
"TwinLisp is a language with C/Java - like syntax, but with internals and abilities of a Common Lisp" Um...C/Java syntax <i>and</i> the abilities of Common Lis
by logjam 18y ago
"TwinLisp is a language with C/Java - like syntax, but with internals and abilities of a Common Lisp"
Um...C/Java syntax <i>and</i> the abilities of Common Lisp....and the webpage says s-expressions aren't needed to build macros....ummm...ok, could the author show us a few TwinLisp macros?
- jsmcgd 18y agoHere's one: mac &infinite-loop (body) { `do () { $@body }} S-expressions are permissible, so maybe it would be best to stick to those until you wrap your head around this crazy infix notation.
- logjam 18y agoI grew up on simpleminded infix notation, and am overjoyed to have moved on. Perhaps we could see a macro example just slightly more complex.