New short-circuit AND/OR operators in FB
new "and" and "or" need to be as short as possible.
i whould even be happy with "and2" and "or2"
i whould even be happy with "and2" and "or2"
Last edited by duke4e on May 23, 2008 16:33, edited 1 time in total.
-
- Site Admin
- Posts: 6323
- Joined: Jul 05, 2005 17:32
- Location: Manchester, Lancs
Personally, I think they look OK outside of If statements.
But I think Hexadecimal Dude has a point - they do look too much like part of the If..ElseIf..EndIf structure.
I think that was probably a significant consideration in the minds of Microsoft when they named those operators in the first place.
But I think Hexadecimal Dude has a point - they do look too much like part of the If..ElseIf..EndIf structure.
I think that was probably a significant consideration in the minds of Microsoft when they named those operators in the first place.
my vote
Another vote for sand and sor
and a vote against && and ||. Don't make me use the shift key when I'm trying to think ;-)
and a vote against && and ||. Don't make me use the shift key when I'm trying to think ;-)
-
- Posts: 5494
- Joined: Sep 12, 2005 20:06
- Location: California
Microsoft decided to charge for their products. We might as well do the same! In that case... I have an announcement to make. I will now start contributing to the compiler source :Dkrcko wrote:i just don't see what's wrong with AndAlso and OrElse? i mean, microsoft decided to use those, why we should same thing name differently?
Isn't that pretty much what they end up being in the end? They are short-circuited, or whatever.But I think Hexadecimal Dude has a point - they do look too much like part of the If..ElseIf..EndIf structure.
Sand Sor! Him and Gland Glor are going to take over the world :DAnother vote for sand and sor
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact:
You need not to define NEW FB only names LAND and LOR are often used for this.
http://www.google.de/search?&q=logic+op ... ND+and+LOR
Joshy
http://www.google.de/search?&q=logic+op ... ND+and+LOR
Joshy
-
- Posts: 5494
- Joined: Sep 12, 2005 20:06
- Location: California