Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75772
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Subject | Re: Making every no-arg method a property? |
| Date | 2014-08-06 09:49 +1000 |
| References | <CA+9L8FypV3+D1cMTca7Dmwju6UB_myDtMUGukpY1fGGZLcbLGQ@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12683.1407282563.18130.python-list@python.org> (permalink) |
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. Whereas I like the opposite: there is a clear syntactic distinction between “get the value of ‘foo.bar.baz’” versus “get the value returned when calling ‘foo.bar.baz’”. 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. -- \ “If this is your first visit to the USSR, you are welcome to | `\ it.” —hotel room, Moscow | _o__) | Ben Finney
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll 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