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?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From alex23 <wuwei23@gmail.com>
Newsgroups comp.lang.python
Subject Re: Making every no-arg method a property?
Date Wed, 06 Aug 2014 15:02:34 +1000
Organization A noiseless patient Spider
Lines 12
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>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Wed, 6 Aug 2014 05:02:35 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="f141bde4d1e4edae3516bb9f1d8e176c"; logging-data="2537"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+j9r/V6+B8XhRl4aT/4PsL"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
In-Reply-To <mailman.12683.1407282563.18130.python-list@python.org>
Cancel-Lock sha1:m0Sq/g/3lEpc6Pkb54l1BEOjPG4=
Xref csiph.com comp.lang.python:75776

Show key headers only | 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