Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75776

Re: Making every no-arg method a property?

From alex23 <wuwei23@gmail.com>
Newsgroups comp.lang.python
Subject Re: Making every no-arg method a property?
Date 2014-08-06 15:02 +1000
Organization A noiseless patient Spider
Message-ID <lrsctb$2f9$1@dont-email.me> (permalink)
References <CA+9L8FypV3+D1cMTca7Dmwju6UB_myDtMUGukpY1fGGZLcbLGQ@mail.gmail.com> <mailman.12683.1407282563.18130.python-list@python.org>

Show all headers | View raw


On 6/08/2014 9:49 AM, Ben Finney wrote:
> Christian Calderon <calderon.christian760@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.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Making every no-arg method a property? Ben Finney <ben+python@benfinney.id.au> - 2014-08-06 09:49 +1000
  Re: Making every no-arg method a property? alex23 <wuwei23@gmail.com> - 2014-08-06 15:02 +1000

csiph-web