A case against Boolean logic
abuseofnotation.github.io
A case against Boolean logic
1–10 of 97 posts
Re: A case against Boolean logic
#2Re: A case against Boolean logic
#3Re: A case against Boolean logic
#4Re: A case against Boolean logic
#5fp folks trying to reinvent probability theory is hilarious
We could bring quantum physics as a simple example of binary logic collapsing, but in programming there are countless ones.
A simple one is a table of users in SQL, where age can be `null` and not just a positive number.
For filters like "age 18" a binary answer cannot model business logic decisions on this set of data properly.
Thus SQL implements a third logic value, UNKNOWN.
Another simple example "is the room hot?".
This is by intuition a bad fit for binary logic. Even if you define "hot" as 30C it's quite clear that the problem is way too nuanced and context dependent to model with binary logic, you need more than two possible answers than yes/no.
Re: A case against Boolean logic
#6fp folks trying to reinvent probability theory is hilarious
Non-boolean logic is more than a century old. We could bring quantum physics as a simple example of binary logic collapsing, but in programming there are countless ones. A simple one is a table of users in SQL, where age can be `null` and not just a positive number. For filters like "age 18" a binary answer cannot model business logic decisions on this set of data properly. Thus SQL implements a third logic value, UN…
Re: A case against Boolean logic
#7https://en.wikipedia.org/wiki/Brouwer%E2%80%93Hilbert_contro...
Re: A case against Boolean logic
#8Re: A case against Boolean logic
#9TIL there's a whole rabbithole of "why vs why not intuitionist logic": https://en.wikipedia.org/wiki/Brouwer%E2%80%93Hilbert_contro...
Re: A case against Boolean logic
#10fp folks trying to reinvent probability theory is hilarious