hashCode
vilterp opened this issue · comments
Pete Vilter commented
- HbInt:
new Integer(value).hashCode()
- HbFloat:
new Float(value).hashCode()
- HbString:
value.toString().hashCode()
- HbBoolean:
new Boolean([true or false]).hashCode()
- default:
id
Pete Vilter commented
dicts and sets will use this. I guess it doesn't have to be exposed in the language...
Pete Vilter commented
Float, Int, True, False, and Nil can just use the default (address) implementation because there are never two instances with the same value