'while/else' (ugh) (was Re: [oclug] Ruby)
Francis J. A. Pinteric
linuxdoctor at linux.ca
Sat Jun 28 00:31:57 EDT 2003
On Fri, 27 Jun 2003 23:22:28 -0400
"Michael P. Soulier" <msoulier at digitaltorque.ca> wrote:
> On 27/06/03 Francis J. A. Pinteric did speaketh:
>
> > Vega 0.0.1 (Fri Jun 27 15:31:41 EDT 2003)
> > [gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)]
> > >> x=0
> > >> while x<10:
> > >> print("Value is:" x)
> > >> x = x+1
> > >> finally
> > >> print("Done. x is:" x)
> > >> end
>
> I would have expected a colon after the finally, based on the
> while
> statement.
>
> Mike
>
Actually, I was thinking the ':" was out of place.
But ...
The language itself is completely free format. The problem is in
it'simplementation. Therein lies the complexity.
Sometimes an extra token helps the language work better. As I said
earlyer, by substuting a keyword `FINALLY' rather than `ELSE' reduced
certain tables that was important.
My design is that of a completely Object Oriented language. But we've
had certain of our members complain that Object Oriented programmed
prevented from doing what they want to do.
So far, Ruby is interesting. I encouraging everyone to explore Ruby as
a new language. Please tell me what your explorations are.
>>>--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/20030628/035fb974/attachment.bin
More information about the OCLUG
mailing list