On Mar 4, 12:21 pm, Jason Sirota <[email protected]> wrote: > > It's not an uncommon pattern to (add k "0") then (incr k) then (get > > k) => "1" > > Out of curiosity then, why is the values stored as a string? Is it just for > historical reasons? space?
Mostly historical (compatibility) reasons. People expect to be able to do a set of something number like, incr, and then get and we didn't want to break that (though I did try, in the end, it just didn't make sense).
