@callmeta
def foo( a: [ SetDoc("frobination count"), InRange(3,9) ],
b: InSet([4,8,12]) )
-> IsNumber:
# code
What extra information or value does the callmeta decorator provide? For the sake of argument, I'll presume it has some useful function. Even so, it doesn't make sense to explictly attach it to every function.
Imagine a hundred such functions in a module. Would it be better to do this:
@callmeta
def func1(..): ...
@callmeta
def func2(..): ...
@callmeta
def func3(..): ...
@callmeta
def func4(..): ...
@callmeta
def func5(..): ...
Or to do this:
func1(...):...
func2(...):...
func3(...):...
func4(...):...
func5(...):...
callmeta()
Paul Prescod
_______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com