in reply to Re^3: OO Perl: Nested classes question
in thread OO Perl: Nested classes question
This isn't what I was talking about. I asking about writingAlso what is the reason that you're afraid of using unless?I strongly dislike the action appearing before the condition. I find it to be a lot more prone to causing confusion (for me) and decreasing readability. (And yes I know there's plenty of people who argue it does exactly the opposite.)
versusif (! defined $self->{_condition}{$condition}) { $self->{_condition}{$condition} = Condition->new(); }
There are arguments both ways, I was wondering what your arguments were. (Basically my belief is that if you're going to offer advice, you should be able to back it up.)unless (defined $self->{_condition}{$condition}) { $self->{_condition}{$condition} = Condition->new(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: OO Perl: Nested classes question
by Crackers2 (Parson) on Sep 16, 2006 at 02:58 UTC | |
by tilly (Archbishop) on Sep 16, 2006 at 03:45 UTC |