Click here to Skip to main content
15,918,889 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: C is a better language than any language you care to name. Pin
Michael Kingsford Gray29-May-14 21:43
Michael Kingsford Gray29-May-14 21:43 
GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult30-May-14 16:45
mvePIEBALDconsult30-May-14 16:45 
GeneralRe: C is a better language than any language you care to name. Pin
Stefan_Lang2-Jun-14 4:56
Stefan_Lang2-Jun-14 4:56 
GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult2-Jun-14 5:36
mvePIEBALDconsult2-Jun-14 5:36 
GeneralRe: C is a better language than any language you care to name. Pin
Stefan_Lang2-Jun-14 20:53
Stefan_Lang2-Jun-14 20:53 
GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult3-Jun-14 3:04
mvePIEBALDconsult3-Jun-14 3:04 
GeneralRe: C is a better language than any language you care to name. Pin
Stefan_Lang3-Jun-14 20:05
Stefan_Lang3-Jun-14 20:05 
GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult4-Jun-14 3:23
mvePIEBALDconsult4-Jun-14 3:23 
Stefan_Lang wrote:
you chose to ignore


I didn't ignore it; the CP selection quoting doesn't like to select text with tags in it and I was too lazy to copy the other text into the quote.


Like this:

switch(a) 
{
 case 1:
 {
  ...
 }

 case 2:
 {
  ...
 }
}



Stefan_Lang wrote:
is present in many BASIC variants


C probably pre-dates them, so perhaps the designers of those variants got the idea from C Big Grin | :-D . When I learned BASIC we didn't have labels, only line numbers.

ON a GOTO 100 , 200

Also, the lines/labels could be anywhere, not grouped together as with CASE statements. Ergo, to me a switch doesn't resemble an ON/GOTO at all.

BASIC (1964) doesn't appear to have had ON/GOTO.
BASICplus (that which I first learned on a PDP-11, and for which I have a book first published in 1976) has no labels and therefore ON/GOTO with line numbers only.
Turbo BASIC (1987) has labels and therefore ON/GOTO with labels.

In the late '80s I was using VAX BASIC and I don't recall it using labels, though it probably did. HPBASIC, the current version of VAX BASIC, does of course.
You'll never get very far if all you do is follow instructions.


modified 4-Jun-14 10:09am.

GeneralRe: C is a better language than any language you care to name. Pin
Stefan_Lang2-Jun-14 4:55
Stefan_Lang2-Jun-14 4:55 
GeneralRe: C is a better language than any language you care to name. Pin
Richard MacCutchan29-May-14 22:26
mveRichard MacCutchan29-May-14 22:26 
GeneralRe: C is a better language than any language you care to name. Pin
bantling29-May-14 23:44
bantling29-May-14 23:44 
GeneralRe: C is a better language than any language you care to name. Pin
Reese Currie30-May-14 3:33
Reese Currie30-May-14 3:33 
GeneralRe: C is a better language than any language you care to name. Pin
MikeTheFid30-May-14 4:02
MikeTheFid30-May-14 4:02 
GeneralRe: C is a better language than any language you care to name. Pin
Breamore Boy30-May-14 5:33
Breamore Boy30-May-14 5:33 
GeneralRe: C is a better language than any language you care to name. Pin
Kenneth Kasajian30-May-14 6:01
Kenneth Kasajian30-May-14 6:01 
GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult30-May-14 16:42
mvePIEBALDconsult30-May-14 16:42 
GeneralRe: C is a better language than any language you care to name. Pin
Colborne_Greg31-May-14 15:18
Colborne_Greg31-May-14 15:18 
GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult31-May-14 17:26
mvePIEBALDconsult31-May-14 17:26 
GeneralRe: C is a better language than any language you care to name. Pin
Colborne_Greg1-Jun-14 15:34
Colborne_Greg1-Jun-14 15:34 
GeneralRe: C is a better language than any language you care to name. Pin
Kenneth Kasajian3-Jun-14 6:34
Kenneth Kasajian3-Jun-14 6:34 
GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult3-Jun-14 8:26
mvePIEBALDconsult3-Jun-14 8:26 
GeneralRe: C is a better language than any language you care to name. Pin
Kenneth Kasajian3-Jun-14 9:45
Kenneth Kasajian3-Jun-14 9:45 
GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult3-Jun-14 10:34
mvePIEBALDconsult3-Jun-14 10:34 
GeneralRe: C is a better language than any language you care to name. Pin
Kenneth Kasajian3-Jun-14 6:35
Kenneth Kasajian3-Jun-14 6:35 
GeneralRe: C is a better language than any language you care to name. Pin
PIEBALDconsult3-Jun-14 8:31
mvePIEBALDconsult3-Jun-14 8:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.