openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #06743
Re: Proposal to limit decorator usage
On Tue, 2012-01-17 at 11:09 -0500, Lorin Hochstein wrote:
> Decorators
> ----------
> A function or method should not have more than two decorators applied to it
> where it is defined.
I'll point out that current discussion on that merge thread is favoring
a different idea altogether: restrict decorators to only those that "do
not mess with the conceptual interface of a function." Mark provides
two examples of decorators which would not fit that restriction, and
Naveed objects to one of them because he feels that validation of input
arguments is a legitimate use of decorators.
--
Kevin L. Mitchell <kevin.mitchell@xxxxxxxxxxxxx>
References