"while/else" (ugh) (was Re: [oclug] Ruby)

Francis J. A. Pinteric linuxdoctor at linux.ca
Fri Jun 27 19:03:19 EDT 2003


On Fri, 27 Jun 2003 16:58:02 -0400
"Michael P. Soulier" <msoulier at digitaltorque.ca> wrote:

> On 27/06/03 Patrick Smith did speaketh:
> 
> > But upvar and pointers make it easy to do things that would be
> > difficult without them.
> > 
> > This 'else after a loop', however, can be easily replaced by
> > standard logical constructs.
> 
>     We don't need do/while or do/until loops either then, but I know
> some people like to have them available. 
> 
>     Mike
> 

Sure, there are lots of things that you don't need.  what's a while loop
anyway? 

label:	do_stuff_for_loop
	if(need_to_do_more_stuff) goto label

Language constructs try to make programming easier so that's why C has
while, for and do-while loops plus the hated goto as well.  Except for
the goto and and if-statement you could do fine without any of that
stuff.  Remember assembly language?

>>>--fja->



-- 
Fashion is for people who have no style.

There are three crimes which deserves the death penalty:
conformity, political correctness, and smoking.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://tux.oclug.on.ca/pipermail/oclug/attachments/20030627/f06491b3/attachment.bin


More information about the OCLUG mailing list