logoalt Hacker News

crabmusket04/24/20251 replyview on HN

The way I think about it: a boolean is usually an answer to a question about the state, not the state itself.

A light switch doesn't have an atomic state, it has a range of motion. The answer to the question "is the switch on?" is a boolean answer to a question whose input state is a range (e.g. is distance between contacts <= epsilon).


Replies

bongripper04/24/2025

[dead]