in reply to Re: OO in Perl 5: still inadequate
in thread OO in Perl 5: still inadequate
Ruby, like Perl, still allows you to redefine your classes at runtime: that alone was enough to ruin the language for me. At least perl warns you when you redefine a function; I got no such warnings from Ruby.
Erm, did you have warnings enbled?
gamera:~ 835> cat boink.rb class Foo def bar( ) puts "bar" end end class Foo def bar( ) puts "baz" end end gamera:~ 836> ruby -w boink.rb boink.rb:8: warning: method redefined; discarding old bar
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: OO in Perl 5: still inadequate
by Anonymous Monk on Jan 23, 2006 at 20:04 UTC | |
by Fletch (Bishop) on Jan 23, 2006 at 21:03 UTC |