Concepts: Conditional logic¶
Short essays on the ideas underneath if, truthiness, and structural pattern matching. The "ah, that's why" layer beneath the syntax — read once and keep coming back to when something surprises you in practice.
Essays in this section¶
- Why truthiness works the way it does — the design choice that lets any object answer "am I meaningful here?", and the trade-off against explicit comparisons.
- Structural pattern matching in context — what
match/caseactually solves (destructuring + branching in one), how it differs fromswitch, and when not to reach for it.