Surely parenthesis will fix it, right? But no:pic.twitter.com/ziPudfLLFh
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
The problem is that equality doesn't distribute over "or" in programming languages, like it does in human language and mathematics. So you have to write:pic.twitter.com/CaO1K7mdEC
That's silly. Computers are fast; can't the compiler make that work? It turns out there's a family of languages that support commutativity of "or" and many other expected properties of logic, writ large: functional logic languages. But they never really left the research labs.
In a functional logic language, "a or b" isn't an operation on booleans. Rather, it creates a backtrack point where the current test you're performing is run twice: first with "a" and then, if necessary, with "b".
In these languages, failure isn't represented by a boolean called "false". Rather, it's a control-flow construct. In an "if" statement, failure runs the next backtrack and, if there are none left, jumps to the "else". Hence you can simply write:pic.twitter.com/O6qFJVXMhX
I always thought "x = y" was the most confusing one, even before being taught much logic. "x is equal to y" always sounded like a proposition to me.
My neighbor and I were both learning to program around the same time. When he saw an assignment using the syntax "A=A+1", he commented: "Programs are full of mathematical equations that aren't true". It goes to show: Languages should respect precedent and intuition.
I remember early on being confused by something akin to: int v = rand(); ... wondering if every time I refered to that "v" I'd get a new random number.
My mom was trying to learn programming at the same time as me and made a similar mistake. She typed an immediate mode command to print the joystick position, then moved the joystick around and was surprised that the number didn't update. Should it have?
idc but nerf aim assist campeon
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.