Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Kotlin Money. Parent comment
I feel like you're jumping to wild conclusions. All I'm suggesting is to change your code to
private object EUR : Currency private object USD : Currency data class Money<C : Currency>(...) { ... }
There are no comments on this comment yet.
I feel like you're jumping to wild conclusions. All I'm suggesting is to change your code to
That's just an empty tag interface and that's not particularly hardcore OOP, you can do the same thing with Haskell typeclasses.