pub.titas
Home Series Blog
Portfolio
← All Tags

DomainModelling

1 items

Series Posts

Conceptual Kotlin for Java Survivors: Life After Semicolons

Part 4: "Data, Sealed and Value" — Modelling the Domain

Two swapped String arguments make a Pune till ring up toor dal at zero. We rebuild the catalog model with data classes and copy(), destructuring, sealed hierarchies with exhaustive when, value classes that cost nothing until they box, and type aliases, and see what each compiles to.

© 2026 Titas Biswas

RSS · Portfolio · GitHub
100%