Re: Making every no-arg method a property?

2014-08-06 Thread Terry Reedy
On 8/6/2014 6:09 AM, alister wrote: On Wed, 06 Aug 2014 10:34:04 +1200, Gregory Ewing wrote: Grant Edwards wrote: Did I miss a news story? Have the parentesis mines all exploded causing the price of parenthesis to skyrocket? The Unicode Consortium has been secretly buying them up for some t

Re: Making every no-arg method a property?

2014-08-06 Thread Rob Gaddi
On Wed, 6 Aug 2014 05:13:07 + (UTC) Grant Edwards wrote: > On 2014-08-05, Gregory Ewing wrote: > > Grant Edwards wrote: > >> Did I miss a news story? Have the parentesis mines all exploded > >> causing the price of parenthesis to skyrocket? > > > > The Unicode Consortium has been secretly b

Re: Making every no-arg method a property?

2014-08-06 Thread Chris Angelico
On Wed, Aug 6, 2014 at 7:15 PM, Steven D'Aprano wrote: > On Wed, 06 Aug 2014 12:07:58 +1000, Chris Angelico wrote: > >> On Wed, Aug 6, 2014 at 10:49 AM, Steven D'Aprano >> wrote: >>> A >>> plethora of argument-less methods is a code smell -- that doesn't mean >>> it's *necessarily* a bad idea, bu

Re: Making every no-arg method a property?

2014-08-06 Thread alister
On Tue, 05 Aug 2014 12:39:18 -0700, Christian Calderon wrote: > I have been using python for 4 years now, and I just started learning > ruby. > 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. I just > realized righ

Re: Making every no-arg method a property?

2014-08-06 Thread alister
On Wed, 06 Aug 2014 10:34:04 +1200, Gregory Ewing wrote: > Grant Edwards wrote: >> Did I miss a news story? Have the parentesis mines all exploded >> causing the price of parenthesis to skyrocket? > > The Unicode Consortium has been secretly buying them up for some time > now. Pretty soon you wo

Re: Making every no-arg method a property?

2014-08-06 Thread Steven D'Aprano
On Wed, 06 Aug 2014 12:07:58 +1000, Chris Angelico wrote: > On Wed, Aug 6, 2014 at 10:49 AM, Steven D'Aprano > wrote: >> A >> plethora of argument-less methods is a code smell -- that doesn't mean >> it's *necessarily* a bad idea, but the class design really needs a >> careful review. > > There

Re: Making every no-arg method a property?

2014-08-05 Thread Grant Edwards
On 2014-08-05, Gregory Ewing wrote: > Grant Edwards wrote: >> Did I miss a news story? Have the parentesis mines all exploded >> causing the price of parenthesis to skyrocket? > > The Unicode Consortium has been secretly buying them > up for some time now. Pretty soon you won't be able > to get c

Re: Making every no-arg method a property?

2014-08-05 Thread alex23
On 6/08/2014 9:49 AM, Ben Finney wrote: Christian Calderon 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 f

Re: Making every no-arg method a property?

2014-08-05 Thread Chris Angelico
On Wed, Aug 6, 2014 at 10:49 AM, Steven D'Aprano wrote: > A > plethora of argument-less methods is a code smell -- that doesn't mean it's > *necessarily* a bad idea, but the class design really needs a careful > review. There are plenty of no-argument mutator methods, where the name of the method

Re: Making every no-arg method a property?

2014-08-05 Thread Steven D'Aprano
Christian Calderon wrote: > I have been using python for 4 years now, and I just started learning > ruby. 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. That's one of the things which I dislike most about Ruby.

Re: Making every no-arg method a property?

2014-08-05 Thread Ben Finney
Christian Calderon 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 retu

Re: Making every no-arg method a property?

2014-08-05 Thread Gregory Ewing
Grant Edwards wrote: Did I miss a news story? Have the parentesis mines all exploded causing the price of parenthesis to skyrocket? The Unicode Consortium has been secretly buying them up for some time now. Pretty soon you won't be able to get cheap ASCII parentheses any more, only the fancy h

Re: Making every no-arg method a property?

2014-08-05 Thread Ian Kelly
On Tue, Aug 5, 2014 at 1:39 PM, Christian Calderon wrote: > I have been using python for 4 years now, and I just started learning ruby. > 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. I just realized > right now

Re: Making every no-arg method a property?

2014-08-05 Thread Grant Edwards
On 2014-08-05, Christian Calderon wrote: > I have been using python for 4 years now, and I just started learning > ruby. 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. Did I miss a news story? Have the parentes

Re: Making every no-arg method a property?

2014-08-05 Thread Rob Gaddi
On Tue, 5 Aug 2014 12:39:18 -0700 Christian Calderon wrote: > I have been using python for 4 years now, and I just started learning ruby. > 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. I just realized > right n

Re: Making every no-arg method a property?

2014-08-05 Thread Chris Angelico
On Wed, Aug 6, 2014 at 5:39 AM, Christian Calderon wrote: > I have been using python for 4 years now, and I just started learning ruby. > 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. I just realized > right now

Making every no-arg method a property?

2014-08-05 Thread Christian Calderon
I have been using python for 4 years now, and I just started learning ruby. 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. I just realized right now that I can do something similar in python, if I make all methods wi