Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Translating Mathematics into Code: Examples in Java, Python, Haskell and Racket.
> X ⊂ Y.
> This subset relationship could be represented as inheritence in a language like Java or Python, if these sets are meant to be types:
> class X extends Y { ... }
If X extends Y, then isn't X a superset of Y, not a subset? I feel like it should be: class Y extends X { ... }
There are no comments on this comment yet.
> X ⊂ Y.
> This subset relationship could be represented as inheritence in a language like Java or Python, if these sets are meant to be types:
> class X extends Y { ... }
If X extends Y, then isn't X a superset of Y, not a subset? I feel like it should be: class Y extends X { ... }