in reply to Re: RFC extending Benchmark.pm to facilitate CODEHASHREF
in thread RFC extending Benchmark.pm to facilitate CODEHASHREF

So you liked the attribute idea? :)

Attribute-Benchmark ===================  Created:      2013-11-26

"Publish or perish"? ;)

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^3: RFC extending Benchmark.pm to facilitate CODEHASHREF
by tobyink (Canon) on Nov 26, 2013 at 21:01 UTC

    To be honest, I can't remember reading that paragraph in your OP, though I may have skimmed it and absorbed it subconsciously.

    I was also thinking along the lines of Test::Class::MOP's is testcase trait and how mop's method traits are basically a variation on sub attributes.

    use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name