You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would be a decorator that can be applied to any function to turn it into a functors (viz. a class with the method __call__). As a result, many of the oddities of how functions behave would be avoided and all the behavior desired of a class would exist.
The text was updated successfully, but these errors were encountered:
jakirkham
changed the title
Provide a decorator to promote functions to closures
Provide a decorator to promote functions to functors
Apr 3, 2015
This would be a decorator that can be applied to any function to turn it into a functors (viz. a class with the method
__call__
). As a result, many of the oddities of how functions behave would be avoided and all the behavior desired of a class would exist.The text was updated successfully, but these errors were encountered: