Why isn't mutable a subtype of immutable, or vice versa?
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
Why isn't mutable a subtype of immutable, or vice versa?
Unofficial Hacker News client; not affiliated with Y Combinator.
zkmon · · focus · HN ↗
Shorel · · focus · HN ↗
<a href="https://commonplacefacts.com/2022/07/27/principia-mathematica-300-page-proof-one-plus-one-equals-two/" rel="nofollow">https://commonplacefacts.com/2022/07/27/principia-mathematic...
applfanboysbgon · · focus · HN ↗
Note, also, that the article isn't even objective. It asserts that the definition of a subtype is Liskov's principle. However, Liskov's principle is only one of multiple possible definitions. In other words, the article is really only invoking Liskov's name as an appeal to authority. So much for strict logic.
pestatije · · focus · HN ↗