[CLJS-638] Keyword invoke is inconsistent with clojure Created: 25/Oct/13 Updated: 26/Oct/13 Resolved: 25/Oct/13
I realize that returning something other than nil for not-found is a questionable design decision but unless Clojure is changed it seems to me ClojureScript should be consistent.
|Comment by David Nolen [ 25/Oct/13 5:11 PM ]|
|Comment by Jozef Wagner [ 26/Oct/13 2:55 AM ]|
The ILookup protocol should be changed in the first place. Having (valAt [o k]) is redundant, as by definition (valAt [o k]) has to be equal to (valAt [o k nil]). The 'optionality' of not-found parameter should be handled in the get function.
|Comment by David Nolen [ 26/Oct/13 10:08 AM ]|
Not true as you may in some cases know you have an ILookup instance and prefer and to avoid the indirection to get all together.