On Mon, Nov 8, 2010 at 2:39 PM, Keean Schupke <[email protected]> wrote: > The problem I am trying to solve is not knowing if "get(key) === undefined" > means the key does not exist or there is a key with a value of undefined. > The solution is to disallow inserting undefined. Now there is no ambiguity, > if get(key) returns undefined, it _must_ be because the key does not exist. > Does this make sense so far?
But if saying "you're not allowed to insert undefined as value" is an acceptable solution, why isn't "you can't tell them apart using get()" an acceptable solution? What use case does the first solution cater to that isn't solved by the second solution? / Jonas
