News for hackers. Stuff that matters.
Re:Computer Scientists Invent an Efficient New Way to Count by jbaber on Friday May 17, 2024 @09:18AM (#40389553)
In some symbolic logic classes, that character "bottom" represents "false" ad flipped "top" means true.

Don't know what they're getting at in the code, though.

Re:Computer Scientists Invent an Efficient New Way to Count by hollerith on Friday May 17, 2024 @09:34AM (#40389672)
>In some symbolic logic classes, that character "bottom" represents "false"

That's unfortunate, because in the study of computer programming languages, it means "undefined" (raise an error).

Re:Computer Scientists Invent an Efficient New Way to Count by tsss on Friday May 17, 2024 @10:48AM (#40390548)
Not always. It is also the uninhabited bottom type.
Re:Computer Scientists Invent an Efficient New Way to Count by hollerith on Friday May 17, 2024 @11:32AM (#40391007)
My point is that there is a difference between a Python function's returning false and the function's raising an error, and sometimes the difference really matters, so it would be regrettable if logic teachers actually did use ⊥ to mean false because programming-language theorists use it to mean something whose only reasonable translation in the domain of practical programming is to raise an error.

I have no idea what your point is.

Re:Computer Scientists Invent an Efficient New Way to Count by dentemple on Friday May 17, 2024 @09:28AM (#40389639)
Once again proving the need for comments in code. Especially for comments that are more useful than "initialize parameters"