5 ms·
Clojure has squiggly brace syntax for map literals, and multiple shortcuts for map lookups. E.g. both (map :key) or (:key map) return the value for :key in map
by jimbokun 18y ago
Clojure has squiggly brace syntax for map literals, and multiple shortcuts for map lookups. E.g. both (map :key) or (:key map) return the value for :key in map (I think).
Arc has similar syntax shortcuts for hashes (but sticks with parentheses):
http://ycombinator.com/arc/tut.txt http://ycombinator.com/arc/tut.txt
arc> (let h (obj x 1 y 2)
(h 'y))
2