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
> 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
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
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
> > 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
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
>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
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
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