Is there a way to make a Clojure map that throws an exception when the key is missing? Extend IPersistentMap?
-
-
Replying to @puredanger
@puredanger@ctford Will it not break other functions depending on "returns nil when key missing" contract?1 reply 1 retweet 1 like -
Replying to @missingfaktor
@missingfaktor@ctford i think that's what you want, but I think it's worth trying to see if it works for you5 replies 0 retweets 0 likes -
Replying to @puredanger
@puredanger@ctford Subclassing and overriding a part of contract to change it drastically would IMO be a bad idea in general.3 replies 1 retweet 1 like
Replying to @missingfaktor
@missingfaktor @puredanger @ctford Why not start from a contract that is sensible? Benefit of adhering to a sloppy principle?
3:33 PM - 30 May 2014
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.