[KongchangAI]
Unverified50% confidenceDecision RuleExact time

Adding a default branch in a switch disables exhaustiveness checking, so newly added subtypes no longer trigger compile errors; therefore, unnecessary default branches should be avoided when using sealed classes.

1
Sources
50%
Confidence
Long-term
Relevance
10/18/2026
First Seen

Sources

Related Entities

Related Claims

Cite This Claim

Stable URI
https://kongchang.com/claim/1062181
API
curl https://kongchang.com/api/v1/knowledge/claims/1062181
MCP
get_claim(id=1062181)