Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #11203

Re: inline "End If" bug, was Re: Weird bug

From "R.Wieser" <address@not.available>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: inline "End If" bug, was Re: Weird bug
Date 2015-11-17 20:47 +0100
Organization Aioe.org NNTP Server
Message-ID <n2g08f$vmo$1@speranza.aioe.org> (permalink)
References (2 earlier) <n2fc8p$aal$1@dont-email.me> <n2fjn0$uu9$1@speranza.aioe.org> <XnsA555B3EE5C6F5eejj99@194.109.6.166> <n2fo1m$aqd$1@speranza.aioe.org> <XnsA555C799E3BFDeejj99@194.109.6.166>

Show all headers | View raw


Evertjan,

> I am not interested in "other languages" here,
> only in the developement of this:
>
> Beginners All-purpose Symbolic Instruction Code.

Than our conversation ends here.

Not because of the language, but as you are going into the realm of the
"what if's".  I have no interest in second-guessing what a language designer
might decide *his* language should evolve in.

> Seen in the light of other languages,
> Basic was as bad as Edsger Wybe Dijkstra
> promised it to be, IMO:

Which version of it please ?

> "BASIC programmers are mentally mutilated beyond hope of regeneration"
> said Edsger Wybe Dijkstra in
> How do we tell truths that might hurt? (1975-06-18)

So, you take that statement outof its context and time and are trying to put
it on several BASIC variants that have evolved sinds than, meaning for the
last 40 years ?

BASIC *might* have been bad in those days, but so is *any* programming
language in the hands of a nitwit.  I've seen enough junk over the years, in
all sorts of languages (PHP, Java, .NET, C{something}, BASIC, you name it).

> The "End If" was never, formally or otherwise planned, introduced
> in the older single line If, it only was discovered in this NG
> and recognised as a bug by MS.

So ?   They *stated* it was a bug, but I doubt it.   And even if it was
introduced by accident, what does that matter if the result is quite
usefull, and does not break anything else (read: is consistent with the rest
of the language) ?

You know what *I* find odd ?   That an "end if" may be followed by a colon
and than more code.  That certainly breaks the "multi-line if" approach. :-)

Ofcorse, *not* allowing that would be an exception to the rule that *any*
command may be followed by a colon ...

> > Ofcourse, several of those languages have "command grouping"

Too bad you have taken a stance, bluntly disregarding this, quite important
difference between two types of implementation of a language, where VBScript
is in the group of "do not have it", and has, to solve it, created the "end
if".

The *only* squabble we have here is if it should be allowed in a single-line
"if" or not.  Nothing more, nothing less.

Regards,
Rudy Wieser


-- Origional message:
Evertjan. <exxjxw.hannivoort@inter.nl.net> schreef in berichtnieuws
XnsA555C799E3BFDeejj99@194.109.6.166...
> "R.Wieser" <address@not.available> wrote on 17 Nov 2015 in
> microsoft.public.scripting.vbscript:
> >> Correct is:
> >>
> >> If boolean Then statement Else statement
> >
> > Nope.   Its just how quite a few (but definitly not all!) languages have
> > defined it.   It does not mean its the *only way* anyone may implement
> > it in his language.
> >
> > I know of languages which use your above description and work as
> > Mayayana described (continuing after a "then" if no "else" is found, or
> > after the first command after the "else").
>
> I am not interested in "other languages" here,
> only in the developement of this:
>
> Beginners All-purpose Symbolic Instruction Code.
>
> Seen in the light of other languages,
> Basic was as bad as Edsger Wybe Dijkstra promised it to be, IMO:
>
> "BASIC programmers are mentally mutilated beyond hope of regeneration"
> said Edsger Wybe Dijkstra in
> How do we tell truths that might hurt? (1975-06-18)
>
> [In fact our Edsger was primarily fighting a language that did everything
> with GoTo, no subroutines, no functions, so no modularity or black box
> testing, just making a unresolvable knot of even the smallest logical
> construct. And no possibility to sensibly name variables other than by a
> single Capital letter plus a number. Referring to his 1975 words however
is
> a joy in itself]
>
> =========================
>
> In principio [in the beginning] there was only:
>
> If boolean GoTo linenumber
>
> then came:
>
> If boolean Then statement
>
> and then:
>
> If boolean Then statement Else statement
>
> after that the multiline If was introduced:
>
> If boolean Then
>    statement
> Else
>   statement
> End If
>
> The multiline "ElseIf" addition even later.
>
> The "End If" was never, formally or otherwise planned, introduced
> in the older single line If, it only was discovered in this NG
> and recognised as a bug by MS.
>
> >
> > Ofcourse, several of those languages have "command grouping"
>
> [snip]
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)


Back to microsoft.public.scripting.vbscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Weird bug "Mayayana" <mayayana@invalid.nospam> - 2015-11-16 13:28 -0500
  Re: Weird bug "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-11-16 19:50 +0100
  Re: Weird bug "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2015-11-16 15:28 -0500
  Re: Weird bug "Mayayana" <mayayana@invalid.nospam> - 2015-11-16 16:13 -0500
    Re: Weird bug "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-11-16 22:57 +0100
      Re: Weird bug "Mayayana" <mayayana@invalid.nospam> - 2015-11-16 18:10 -0500
        Re: Weird bug "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-11-17 01:20 +0100
          Re: Weird bug "Mayayana" <mayayana@invalid.nospam> - 2015-11-16 21:11 -0500
  Re: Weird bug "R.Wieser" <address@not.available> - 2015-11-17 10:44 +0100
    Re: Weird bug "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-11-17 11:19 +0100
      Re: Weird bug "R.Wieser" <address@not.available> - 2015-11-17 11:31 +0100
    Re: Weird bug "Mayayana" <mayayana@invalid.nospam> - 2015-11-17 09:06 -0500
      Re: Weird bug "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-11-17 15:24 +0100
        Re: Weird bug "Mayayana" <mayayana@invalid.nospam> - 2015-11-17 10:35 -0500
          Re: Weird bug "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-11-17 16:45 +0100
      Re: Weird bug "R.Wieser" <address@not.available> - 2015-11-17 17:13 +0100
        inline "End If" bug, was Re: Weird bug "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-11-17 17:41 +0100
          Re: inline "End If" bug, was Re: Weird bug "R.Wieser" <address@not.available> - 2015-11-17 18:27 +0100
            Re: inline "End If" bug, was Re: Weird bug "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-11-17 19:37 +0100
              Edsger Wybe Dijkstra was: Re: inline "End If" bug, was Re: Weird bug "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-11-17 19:44 +0100
              Re: inline "End If" bug, was Re: Weird bug "R.Wieser" <address@not.available> - 2015-11-17 20:47 +0100
        Re: Weird bug "Mayayana" <mayayana@invalid.nospam> - 2015-11-17 12:01 -0500
          Re: Weird bug "R.Wieser" <address@not.available> - 2015-11-17 18:47 +0100
  Re: Weird bug "R. Roesler" <worm.composter@nospam.arcornews.de> - 2015-11-19 13:12 +0100

csiph-web