What do you think about Ruby ?

Nicolas Cavigneaux nico at bounga.org
Sun Aug 7 14:03:20 UTC 2005


Le dimanche 07 août 2005 à 05:51 -0700, Blake a écrit :

> i = 0
> begin
>    puts "#{i}"
>    i += 1
> end until i > 4

A real Rubyist will do :

(0..4).each { |i| puts i }

Bye.
-- 
Nicolas Cavigneaux | GPG KeyID : CFE76D24
nico at bounga.org    | http://www.bounga.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20050807/9b28aaed/attachment.pgp


More information about the Squeak-dev mailing list