[CLJS-545] Symbols should use caching-hash; also, nil as initial value Created: 19/Jul/13 Updated: 29/Jul/13 Resolved: 29/Jul/13
Currently cljs.core.Symbol uses its own implementation of hash caching, even though it could use the caching-hash macro. To use the macro it would have to use nil rather than the current -1 as the initial value, but that's a feature (no reason to use a magic value in ClojureScript). Also, a private function for hashing symbols would be needed (but the whole thing still feels simpler).
The forthcoming patch makes the changes described above.
|Comment by David Nolen [ 29/Jul/13 11:15 PM ]|