jank
jank copied to clipboard
Set and map literals should check for duplicate keys
;;jank
clojure.core=> #{1 1}
#{1}
clojure.core=> {1 1 1 1}
{1 1}
;;clj
user=> #{1 1}
Syntax error reading source at (REPL:1:7).
Duplicate key: 1
user=> {1 1 1 1}
Syntax error reading source at (REPL:2:10).
Duplicate key: 1
The TODO for this is here: https://github.com/jank-lang/jank/blob/main/compiler%2Bruntime/src/cpp/jank/analyze/processor.cpp#L1245
I'm interested in working on this!
The TODO for this is here: https://github.com/jank-lang/jank/blob/main/compiler%2Bruntime/src/cpp/jank/analyze/processor.cpp#L1245
Updated permalink.