Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75772 > unrolled thread
| Started by | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| First post | 2014-08-06 09:49 +1000 |
| Last post | 2014-08-06 15:02 +1000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
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
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Date | 2014-08-06 09:49 +1000 |
| Subject | Re: Making every no-arg method a property? |
| Message-ID | <mailman.12683.1407282563.18130.python-list@python.org> |
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
[toc] | [next] | [standalone]
| From | alex23 <wuwei23@gmail.com> |
|---|---|
| Date | 2014-08-06 15:02 +1000 |
| Message-ID | <lrsctb$2f9$1@dont-email.me> |
| In reply to | #75772 |
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.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web