in reply to Re: regex transforms of object attributes
in thread regex transforms of object attributes
BrowserUk, I see a contradiction between your post.
In Re^2: regex transforms of object attributes, you say (rightly) that encoding a hash key string in the caller code breaks the encapsulation of the object. Using an lvalue method is, however, almost just as wrong. An lvalue method in Perl cannot do a check on what value you set, or do some computation with the rhs expression (in case the implementation of the attribute changes), so it is IMO not much better than just using a hash key. This is the weakness of the OO support of perl.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: regex transforms of object attributes
by BrowserUk (Patriarch) on Jun 20, 2004 at 22:14 UTC | |
|
Re^3: regex transforms of object attributes
by ihb (Deacon) on Jun 20, 2004 at 22:20 UTC |