brownplt / lambda-py

Other
58 stars 10 forks source link

Decorators as HOF and @staticmethod #35

Closed amtriathlon closed 11 years ago

amtriathlon commented 11 years ago

Decorators should be generalized as syntactic sugar for HOF application in general, and classmethod and staticmethod should be just particular cases.

Tests added in https://github.com/brownplt/lambda-py/commit/11f55ddc53800906f30db38ae119a3fb34bd688d

An implementation for staticmethod is in https://github.com/brownplt/lambda-py/commit/39fa5a92fb26e7672a6223d369b0619eea1ca54b

amtriathlon commented 11 years ago

Solved in https://github.com/brownplt/lambda-py/commit/a4a0db48229eecc96b7d2b08dd17a2b4ec9bdb16