06-13-2022, 07:01 PM
(05-21-2022, 08:05 PM)Dimster Wrote: Would it be difficult to add more logical operators to the QB64 language?
I often come across math formulas which use some hieroglyics that I'm constantly looking us to decipher.
When it comes to logical operators I see them so often I sometimes wonder if they may be useful in QB64. For example, a couple of them are:
V means the logical OR, so it would be "A V B" v's "A OR B". The inverted V means AND
A pyramid of dots . means "THEREFORE", so "HM = M and S = M . S = HM"
. . . .
...
Is it too difficult to add more Logical Operators to QB64 math arsenal?
Honestly, I think this would make a lot of people confused.
Maybe if the IDE had some setting to allow that notation,
and if the person turned it off in the settings,
it would automatically convert those statements to the standard QuickBasic notation,
e.g. "A V B" would be changed back to "A OR B", etc.?
But that would still mean that there would be source code listings out there in forums and downloadables,
that use this new notation, and old time QuickBasic users or people who don't want to get into that notation, might find it difficult.
I guess it comes down to, what do we gain from typing "V" instead of "OR"?
So we have to type one less character, not that big of a gain.
And on the downside, it would confuse a lot of people possibly break compatibility.
Just my 2 cents...