Hi,

On Fri, 28 Jan 2005 13:35:42 +0900, Navindra Umanee
<navindra / cs.mcgill.ca> wrote:
> Zach Dennis <zdennis / mktec.com> wrote:
> >   - you can use string interpolation, ex: "x: #{@myvar}" instead of
> > having to say "x:" + myvar'
> 
> Ruby seems to lose here.  The syntax #{@myvar} is a rare case of
> ugliness.

It's funny how we can disagree over such "simple" syntax. :-) Fact is,
@is_not_a_method, and it has the escope explicit (always better then
implicit, right?), besides being only one character. Perfect, Matz,
thanks. :-)

> 
> >   - ruby doesn't force you to have 1 file per public class, you can have
> > all the public classes you want in a file (not that you have to do this,
> > but it's a nice option to have)
> 
> On the other hand, if you *want* to put each class in a file, you end
> up having to painfully "require" each file every time you want to
> access a class.  Java can automatically find classes in the current
> package and load them.  Or is just me?  Is there a Ruby Way?

Just create 1 method that loads all the files that you want in the
current directory or in the directory that you want (or in the
subdirectories, for that matter.) Rails uses such techniques to cut
the clutter, for example.

> Cheers,
> Navin.
> 
> 

Cheers,
Joao