Making every no-arg method a property?
alex23
wuwei23 at gmail.com
Wed Aug 6 01:02:34 EDT 2014
On 6/08/2014 9:49 AM, Ben Finney wrote:
> Christian Calderon <calderon.christian760 at gmail.com> writes:
>> I like that in ruby I don't have to type parenthesis at the end of
>> each function call if I don't need to provide extra arguments.
> Having the same name sometimes refer to “get this as a value” and other
> times “call this as a function and get the return value” imposes a
> cognitive load on the reader, IMO an unnecessary one.
It also makes it impossible to use such methods in dispatch patterns or
as callbacks.
More information about the Python-list
mailing list