PC Review


Reply
Thread Tools Rate Thread

The Ballad of AndAlso and OrElse

 
 
Jeremy
Guest
Posts: n/a
 
      27th Aug 2003
Paul Vick posted this Blog (link below), "The Ballad of AndAlso and OrElse",
and I noticed people were discussing this topic semi-regularly so I thought
I would post the pseudo-official word of Blog for anyone who may have missed
it:

http://tinyurl.com/larl


~
Jeremy


 
Reply With Quote
 
 
 
 
Jeremy Cowles
Guest
Posts: n/a
 
      27th Aug 2003
> At first sight it looks if it has a long decission way. On second look I
> don' believe that it had, this looks like a one night invention.
> The non historical existing operators in programming languages who used
> words where always in English.
> Maybe bad for the most people from the world, because that is not their
> natural language but because it where just a few words it never did give

any
> difficulties.


Interesting... but if you dont understand english, is OrElse really any
different from || ? They are both just symbols if you dont understand the
language.



> AlsoAnd and AlsoOr are even not English words, they don't exist in any
> language in the meaning from this article.
> So when they had want to divide that in two the had in my opinion for the
> bitwise operators for the same could use the || and the && which has the
> same abstraction like the none existing words AlsoOr and AlsoAnd.
> (I have the same with the ElseIf but my hope was that those word would
> slowly leave VB, I have always trouble with that)
> (And the sentence about Strict Off is of course a maximum laugh).


 
Reply With Quote
 
Tom Spink
Guest
Posts: n/a
 
      27th Aug 2003
I can see VB.NET coming to a point where somebody has missed out the second
operand or OrElse:

If A = B OrElse Then MsgBox("Hello")

And the compiler turning round and saying, OrElse what?

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit


"Cor" <(E-Mail Removed)> wrote in message
news:3f4c7ee2$0$29332$(E-Mail Removed)...
> Jeremy,
> At first sight it looks if it has a long decission way. On second look I
> don' believe that it had, this looks like a one night invention.
> The non historical existing operators in programming languages who used
> words where always in English.
> Maybe bad for the most people from the world, because that is not their
> natural language but because it where just a few words it never did give

any
> difficulties.
> AlsoAnd and AlsoOr are even not English words, they don't exist in any
> language in the meaning from this article.
> So when they had want to divide that in two the had in my opinion for the
> bitwise operators for the same could use the || and the && which has the
> same abstraction like the none existing words AlsoOr and AlsoAnd.
> (I have the same with the ElseIf but my hope was that those word would
> slowly leave VB, I have always trouble with that)
> (And the sentence about Strict Off is of course a maximum laugh).
> Cor
>
>



 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      27th Aug 2003
Reading it over I see a peace of the trouble. The & is unusable in VB for a
bitwise operator, never thought of that.


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      28th Aug 2003
Hello,

"Jeremy Cowles" <jeremy.cowles[nosp@m]asifl.com> schrieb:
> Interesting... but if you dont understand english, is OrElse really any
> different from || ? They are both just symbols if you dont understand the
> language.


IMO "OrElse" is easier to remember than "||", even if you are not a native
English-speaker. Don't forget that VB .NET doesn't take part in an ASCII at
competition.

Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet


 
Reply With Quote
 
Tom Spink
Guest
Posts: n/a
 
      28th Aug 2003
OderSonst Was?

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit


"Herfried K. Wagner [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> "Jeremy Cowles" <jeremy.cowles[nosp@m]asifl.com> schrieb:
> > Interesting... but if you dont understand english, is OrElse really any
> > different from || ? They are both just symbols if you dont understand

the
> > language.

>
> IMO "OrElse" is easier to remember than "||", even if you are not a native
> English-speaker. Don't forget that VB .NET doesn't take part in an ASCII

at
> competition.
>
> Regards,
> Herfried K. Wagner
> --
> MVP · VB Classic, VB .NET
> http://www.mvps.org/dotnet
>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      28th Aug 2003
Hello,

"Cor" <(E-Mail Removed)> schrieb:
> That would be nice but why not just blabla and blable


There are lots of more important questions unanswered.

EOT

Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet


 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      28th Aug 2003
Hi,
Thinking about that.
In my native language has AND ALSO a slight different meaning from AND.
I am curious how it is with other languages.
By instance the sentence
Mary and Peter and also their partners where at the meeting
has a slight different meaning from
Mary and Peter and their partners where at the meeting
(I am curious)
Cor



 
Reply With Quote
 
Jeremy Cowles
Guest
Posts: n/a
 
      28th Aug 2003
> In my native language has AND ALSO a slight different meaning from AND.
> I am curious how it is with other languages.
> By instance the sentence
> Mary and Peter and also their partners where at the meeting
> has a slight different meaning from
> Mary and Peter and their partners where at the meeting
> (I am curious)


OrElse and AndAlso have essentially the same meaning as Or and And
respectivly (in english).

This and that
This and also that
This and and that

They have the same meaning. Also and And are synonyms. As are Or and Else.

I think ShortCircuitingDisjunctionAnd and ShortCircuitingDisjunctionOr would
be better op names. =)

~
Jeremy

 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      28th Aug 2003
Hello,

"Cor" <(E-Mail Removed)> schrieb:
> Thinking about that.
> In my native language has AND ALSO a slight different meaning from AND.
> I am curious how it is with other languages.
> By instance the sentence


"and also" = "und auch" in German. That has exactly the same meaning as
"and also" in English.

Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AndAlso, OrElse and brackets Mike Ratcliffe Microsoft VB .NET 10 29th Mar 2010 08:52 AM
How to translate OrElse and AndAlso from VB.NET? Siegfried Heintze Microsoft C# .NET 3 11th Jan 2008 11:08 PM
And vs. AndAlso , Or vs. OrElse and Set data type Cor Ligthert [MVP] Microsoft VB .NET 0 26th Jul 2005 10:58 AM
AndAlso & OrElse Raterus Microsoft VB .NET 12 5th Aug 2004 01:35 AM
AndAlso/OrElse usage Mike Hale Microsoft VB .NET 10 12th Nov 2003 11:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:52 AM.