in reply to Mutator chaining considered harmful
Want to see another channel? Call anatrace again.my $s= Scope->new('probe' => $netlist) ->anatrace('in', 'System input', 'active', 1) ->anatrace('out_1', 'Lpf bank1', 'active', 1) ->anatrace('out_2', 'Lpf bank2', 'active', 1024) ->anatrace('out', 'System output', 'active', 1) ->anatrace('bank2', 'Switch pos', 'active', 1) ->generate();
I don't think that features with potential downsides should be 'considered harmful'.
It is possible to create a 'little language' out of chained method calls. I avoid creating little languages because I have seen a few of them grow into voracious blood-sucking monsters. I can enjoy chaining method calls without fear of triggering a science-related memetic disorder.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mutator chaining considered harmful
by kappa (Chaplain) on Dec 29, 2004 at 14:11 UTC | |
|
Re^2: Mutator chaining considered harmful
by Aristotle (Chancellor) on Dec 29, 2004 at 19:39 UTC | |
by toma (Vicar) on Dec 29, 2004 at 21:29 UTC |