3 ms·
> Equatable and Hashable ... have multiple implementations of each if needed i dont believe this would fix the problem, because the reason you'd want multiple
by chii 5y ago
> Equatable and Hashable ... have multiple implementations of each if needed
i dont believe this would fix the problem, because the reason you'd want multiple implementations is because you'd want to use different ones under different circumstances that may only be determined at runtime anyway.
I much prefer the haskell way of thinking about typeclasses, but this mechanism is fairly difficult to implement in java...may be object algebra can potentially be used?
see this paper
https://docs.google.com/viewerng/viewer?url=www.cs.utexas.edu/~wcook/Drafts/2012/ecoop2012.pdf https://docs.google.com/viewerng/viewer?url=www.cs.utexas.ed...