• Kirill Smelkov's avatar
    golang: Deprecate @method(cls) in favour of @func(cls) · 942ee900
    Kirill Smelkov authored
    Since we already have func (see 5146eb0b "Add support for defer &
    recover") we can use @func for both plain functions and for methods.
    
    For example instead of
    
    	@func
    	def my_function(...):
    	    ...
    
    	@method(MyClass)			<-- NOTE
    	def my_method(self, ...):
    	    ...
    
    have it as
    
    	@func
    	def my_function(...):
    	    ...
    
    	@func(MyClass)				<-- NOTE
    	def my_method(self, ...):
    	    ...
    
    which looks more similar to Go and exposes less golang keywords to a user.
    942ee900
README.rst 5.94 KB