6 ms·
This is really cool and for the most part the syntax seems to make sense. One thing I don't understand is why there is special unnatural-looking syntax for dic
by tmp48764 16y ago
This is really cool and for the most part the syntax seems to make sense.
One thing I don't understand is why there is special unnatural-looking syntax for dictionaries. It is inconsistent that comma=whitespace everywhere else. Perhaps something like:
(array "a"=>1 "b"=>2)
Note that this currently compiles to array("a", =>1, "b", =>2)
- Scriptor 16y agoThe current dictionary syntax is actually typical for lisps, particularly this is exactly what Clojure does. It's just a series of elements except in this case it's designed to look at every two elements as a pair. What do you mean by it's inconsistent? Commas are the same both in dictionaries and anywhere else, they're completely optional.
- tmp48764 16y agoI take that back. I had no idea that {"a" 1 "b" 2} works when I made that comment.