liskov-substitution-principle

Tag

Cards List
#liskov-substitution-principle

FAQ: Why isn’t mutable a subtype of immutable, or vice versa?

Lobsters Hottest ↗ · 2026-09-18 Cached

This article explains why mutable data types cannot be subtypes of immutable types in programming languages, using the Liskov substitution principle and pairs as an example to highlight type safety and immutability contracts.

0 favorites 0 likes
#liskov-substitution-principle

The Liskov Substitution Principle does more than you think

Hillel Wayne — Computer Things ↗ · 2026-01-06 Cached

The article explores the Liskov Substitution Principle beyond its common interpretation, emphasizing its formal basis in subtyping with preconditions, postconditions, invariants, and history properties, and citing original research papers.

0 favorites 0 likes
← Back to home

Submit Feedback