For some reason, I have a perfect recollection of my early programming mistakes. My first was not understanding why a perfectly reasonable test like this didn't work:pic.twitter.com/rSuqFdmGMD
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
How would logical negation work? Something like "IF NOT(a = (0 OR 1)) ...". Or could you even do something like "IF a = (NOT (0 OR 1))"? You can get away with that in English :).
These functional logic programs track backtracking per context, and certain language constructs define a new context: the condition of an if-statement, the domain for-loop or a function, the right-hand side of a "not" or inequality. So you could write "IF A <> (0 OR 1)".
I continue to want this almost every day. But what I really really want is the ability to write: if (5 <= X < 7)
That would work if these operators were right-associative and either failed or produced their right-hand value. This is exactly how they'd work in a proper functional logic language.
You can also do something similar with delimited continuations. In one language I've been thinking about for a while, there's an operator ` that passes "the rest of the block" to an expression, so you can write
"{ if (x == or(0, 1)`) { ... } }" and it would translate to e.g. "or(0, 1, \i -> { if (x == i) { ... } })" (I want this to happen at compiletime rather than use closures). There's also a connection to monads, of course, and in particular this proposal:https://github.com/ghc-proposals/ghc-proposals/pull/64 …
explain to me what booleans are, I always thought they were another name for variables.
If you feel forced crossplay is wrong please consider signing this.https://www.change.org/RemoveForcedCrossplayFORTNITE …
hello tim, I need your help, your workers blocked my epic games account for no reason and they don't want to return it to me, I give them a lot of evidence and they don't return it to me, please so tim can see it.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.