RE: switch/case (c) vs. case (pascal)

2000-08-04 Thread Ala Qumsieh
Tom Hughes wrote: > Is there any difference, besides the default fall through of > the C switch statement? I believe Pascal's case statement allows only one statement to be executed for each case. This is, IMHO, a pain in the ass. Personally, I prefer to see something more like C's switch, but

Re: switch/case (c) vs. case (pascal)

2000-08-04 Thread Damian Conway
> Damian Conway wrote: > > http://www.csse.monash.edu.au/~damian/TPC/2000/switch/paper.txt > > Curried operators might be a nice way of generalizing the switch > syntax. When we write: I'm just about to post an RFC proposing exactly that (albeit with a quite different syntax). Da

Re: switch/case (c) vs. case (pascal)

2000-08-04 Thread Ken Fox
Damian Conway wrote: > http://www.csse.monash.edu.au/~damian/TPC/2000/switch/paper.txt Curried operators might be a nice way of generalizing the switch syntax. When we write: switch ($x ==) { 1: "one"; 2: "two"; 3: "three"; } That could be interpreted as currying the == operator

Re: switch/case (c) vs. case (pascal)

2000-08-04 Thread Tom Hughes
In article <[EMAIL PROTECTED]>, Damian Conway <[EMAIL PROTECTED]> writes: >> > Please, please, *PLEASE* read through Damian's fine paper on this >> > entire matter before rendering judgment. >> >> URL? > > http://www.csse.monash.edu.au/~damian/TPC/2000/switch/paper.txt Very interesting. I look

Re: switch/case (c) vs. case (pascal)

2000-08-04 Thread Damian Conway
> > Please, please, *PLEASE* read through Damian's fine paper on this > > entire matter before rendering judgment. > > URL? http://www.csse.monash.edu.au/~damian/TPC/2000/switch/paper.txt Damian

Re: switch/case (c) vs. case (pascal)

2000-08-04 Thread Tom Hughes
In message <2804054645$[EMAIL PROTECTED]> Tom Christiansen <[EMAIL PROTECTED]> wrote: > Please, please, *PLEASE* read through Damian's fine paper on this > entire matter before rendering judgment. URL? Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ...Please think

Re: switch/case (c) vs. case (pascal)

2000-08-03 Thread Tom Christiansen
>if you want to have something like switch/case it is a good idea to use >the 'case' of pascal, because it is easy to use and it is really clear. >the 'switch/case' of c is (in my opinion) is not good for a language >like perl which claims to be practical. Please, please, *PLEASE* read through Da

Re: switch/case (c) vs. case (pascal)

2000-08-03 Thread Tom Hughes
In message <[EMAIL PROTECTED]> [EMAIL PROTECTED] (Stefan Moch) wrote: > if you want to have something like switch/case it is a good idea to use > the 'case' of pascal, because it is easy to use and it is really clear. > the 'switch/case' of c is (in my opinion) is not good for a languag

switch/case (c) vs. case (pascal)

2000-08-03 Thread Stefan Moch
hi, if you want to have something like switch/case it is a good idea to use the 'case' of pascal, because it is easy to use and it is really clear. the 'switch/case' of c is (in my opinion) is not good for a language like perl which claims to be practical. cu stefan -- Diese eMail wurde unter