News for hackers. Stuff that matters.
Re:A liar who always lies says "All my hats are green." by MrMcCall on Monday December 09, 2024 @08:52AM (#42366277)
Thanks for breaking that down for me.

I guess, to me, a programmer logician not a mathematician logician, the real problem for me here is the definition of "liar" as it applies to how we parse the problem statement's facts.

Re:A liar who always lies says "All my hats are green." by n4r9 on Tuesday December 17, 2024 @07:08AM (#42440713)
I'd argue that this bit of mathematical logic carries over to many programming languages. For example using LINQ expressions in C#:

https://dotnetfiddle.net/3QGurc