borkdude / speculative

Unofficial community-driven specs for clojure.core
Eclipse Public License 1.0
188 stars 16 forks source link

First arg of `clojure.core/get` should be associative #313

Closed vemv closed 2 years ago

vemv commented 2 years ago

Currently it's defined as a ::ss/any. If it was defined as an 'associative', it would avoid the pitfaill described in this discussion:

https://ask.clojure.org/index.php/1917/get-should-throw-exception-on-non-associative-argument


(n.b. I'm just reporting this as an idea for anyone that might want to work on this project in a future. I'm not currently a user)