Closed postspectacular closed 9 years ago
Hi,
Thanks for reporting this. I guess implementing IHash and IEquiv for all the goog.date types should fix this. I'll have it in the next release.
I highly recommend putting the hashing/equality implementations in a separate namespace that user can optionally load. I can easily imagine a case where people have already implemented these for Google Closure data structures.
Good point, thanks. I'll fix that.
@andrewmcveigh thanks for this & the new release!
Hashing of dates seems to be broken/non-existent, probably due to use of Google JS types. The following should produce a map of 3 pairs (12h steps, grouped by day), but instead does no grouping at all:
The same works in Clojure w/ clj-time:
A simple fix might be to add an
IHash
protocol impl based on epochs...