|
I was surprised "iff" was a Words with Friends word (scrabble game), and it got me thinking, what's the difference between "if" and "iff". Google time!
"P if Q" is a one way implication , P⟸Q
Ex: (x>2)⟸(x=5)
"P iff Q" is a two way equivalence, P⟺Q
Ex: (x−3=2)⟺(x=5)
Huh. Learned something.
So I'm sharing.
|
|
|
|
|
Just don't mention IIf (the anti VB folks will get in an uproar)
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
|
|
|
|
|
IIF is (I)mmediate IF and
iff is if and only if
Huge difference. Can't ya see. (LOL)
only poking fun. Seriously interesting though.
To err is human to really elephant it up you need a computer
|
|
|
|
|
Why isn't "if" good enough? "if and only if" seems redundant and only redundant...
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
If A then B explicits that B is true when A is true, does not specify anything about state of B when A is false.
If and only if A then B means that B is true when A is true and false when A is false.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
Just a bunch of visual basic double-talk
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
|
"All sides are equal" IF "figure is square"
"All sides are equal" IFF (if and only if) "figure is rhombus"
Might be better examples but this is the first one that came to mind.
Mircea
|
|
|
|
|
There are better examples, namely "All sides of a quadrilateral are equal..."
|
|
|
|
|
That's actually what I read initially
Not just VB, but SQL Server too
|
|
|
|
|
They don't need a reason to get in an uproar. The Haters never do.
I tried C once and decided I was not a masochist.
|
|
|
|
|
Brings back memories of algebra 101.
(Just don't confuse it with IIF , which is a different beast entirely.)
VBA also carried over the Imp operator[^] from QBASIC, which is the inverse of "if" in this sense. It got dropped from VB.NET though.
Fortunately, it's easy enough to implement any logical operator with just And , Or , and Not . And for extra credit, you can even drop either And or Or , and just use two operators.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I thought only NAND was required for making logic circuits.
Edit:
"
NAND gates can also be used to produce any other type of logic gate function, and in practice the NAND gate forms the basis of most practical logic circuits.
By connecting them together in various combinations the three basic gate types of AND, OR and NOT function can be formed using only NAND gates, for example.
As well as the three common types above, Exclusive-OR, Exclusive-NOR and standard NOR gates can be formed using just individual NAND gates.
" -- https://www.electronics-tutorials.ws/logic/logic_5.html
modified 18-Feb-21 12:42pm.
|
|
|
|
|
|
What Kenneth said. 👆
You can build OR from NOT +AND , and you can build AND from NOT +OR .
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
A simple way of looking at IFF is that it precludes and OR .
What's wrong with the whole thing is that it is not a word - ti's an abbreviation and that's specifically excluded in Scrabble, along with things like hyphenated words. Scrabble's manufacturer came out with the "Scrabble Dictionary" and that, allowing a number of non-words, screwed the game. If it's the official dictionary, how can you argue that a word's "not in the (real) dictionary" so it doesn't count if they decide to add it?
So, when I play Scrabble, I play IFF it is agreed to limit acceptable words to those found in a real dictionary.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
True, yet "real" dictionaries can't be trusted either.
But, yes, the OWL has some issues.
|
|
|
|
|
Marc Clifton wrote: Huh. Learned something.
Funny you should say that, because reading this post I feel like I just unlearned something... wish I knew what it was
|
|
|
|
|
And here I thought that iff was used in angry discussions in polite company, stifling profanities; usually followed by a pause.
For example,
Wife: IFF ... you FFeel that you need to go FFishing with your FFreinds, that FINE!
Nothing succeeds like a budgie without teeth.
|
|
|
|
|
We learned about immediate if in 8th grade algebra.
|
|
|
|
|
Shows the difference between natural languages and computer languages.
|
|
|
|
|
But you don't want to admit it.
So for them all modern await (which in fact runs operation in separate thread and waits on event together with message processing using MsgWaitForMultipleObjects) are useless for them. And of course, if you can use .Net Synchronizationb Context in Delphi or in C++ (especially with Visual Studio 2005) it would be great. This is the real development world.
I bolded the bit not understanding tasks, which do not necessarily spawn a thread, nor does await necessarily use MsgWaitForMultipleObjects.
This is what support looks like for one of my products we purchased.
Real programmers use butterflies
|
|
|
|
|
I'm not entirely sure what your entire complaint is about; but after seeing that the s involved not only are using Delphi as an excuse, but also ing VS05 I know everything I need to know:
Run away!
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
I would but BTFramework is the only game in town for now. The attitude though? It makes me want to release a competing offering into the public domain just to undercut their bottom line.
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: It makes me want to release a competing offering into the public domain
Is my prediction coming true?
|
|
|
|