« * K @btratra.bsky.social

btratra.bsky.social @btratra.bsky.social

2026-08-14 21:09 UTC

An exhaustive switch over a sealed type gives the compiler a chance to verify our assumptions. When a new permitted subtype is added, recompilation exposes the missing case. That feedback is a feature. Good API design does more than handle today’s reality—it makes tomorrow’s change visible :-)

Link: Preparing for Change: Safe Switching over Sealed APIs (openjdk.org/projects/amber/guides/exhaustiveness-guide)

0 likes, 0 reposts, 0 replies

3 Next post4 More from @btratra.bsky.socialBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup