in reply to Moose handling of unwanted parameters
G'day glasswalk3r,
With only a prosaic description, I'm left trying to envisage what your code looks like. That visualisation could easily be wrong. With that caveat in mind, here's some suggestions.
Perhaps use the lazy option in your Moose constructor. Something like:
has connection_parameters => (lazy => 1, builder => ...);
Maybe you want a MakesConnection Moose::Role; potentially applied conditionally using one of the Moose::Util functions, e.g. apply_all_roles().
— Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Moose handling of unwanted parameters
by glasswalk3r (Friar) on Dec 20, 2016 at 11:53 UTC |