Re:MISC: A homoiconic language based on maps
by tac-tics on Thursday July 10, 2008 @10:43AM
(#242425)
I do like the square brackets. They don't require holding down shift. And when you're writing the next killer app, and in the process, end up setting the world record for the longest string of subsequent ')' characters... that saves you a ton of stress on your pinky finger ;-)
Re:MISC: A homoiconic language based on maps
by emmett on Thursday July 10, 2008 @08:55AM
(#242334)
I agree. It would be easy enough to write autoquoting versions as macros, but since the names are taken your new let/lambda would have to be named something else.
Re:MISC: A homoiconic language based on maps
by serhei on Wednesday July 09, 2008 @10:38PM
(#241946)
Very nice, although they could have reversed the roles of square and ordinary brackets. Especially since square brackets mean "list of stuff" in most scripting languages.
Re:MISC: A homoiconic language based on maps
by etal on Thursday July 10, 2008 @12:24AM
(#242029)
But think how much shift-key this saves. For a language that's fully bracketed/parenthesized, would be nice to be able to hit both bracket keys without holding Shift or tweaking the keybindings.
An elegant system for metadata which can be used to implement documentation, pretty printing, types, debugging, logging, and other such meta things.
Keyword arguments are baked in for free.
Direct read/write access to the environment as a map.
this is one of the things i like about Lua (which is listed there as a source of ideas)
i definitely don't like the choice of square brackets though, it's very ugly and hard to read. they should have stuck with parens