Re: Extensibility of CM classes

2013-07-12 Thread Gilles
On Fri, 12 Jul 2013 16:01:30 +0100, sebb wrote: On 12 July 2013 15:39, Ajo Fod wrote: I wonder what conditions justify the use of protected / public fields? I can see how protected fields make more sense for a single user code because it is easier to not have all those getter/setter method

Re: Extensibility of CM classes

2013-07-12 Thread Ajo Fod
I like the last few arguments about multi threaded environments. That makes the getter/setter paradigm desirable even in single user environments. Thanks for the thoughtful arguments. On Fri, Jul 12, 2013 at 8:01 AM, sebb wrote: > On 12 July 2013 15:39, Ajo Fod wrote: > > I wonder what condi

Re: Extensibility of CM classes

2013-07-12 Thread sebb
On 12 July 2013 15:39, Ajo Fod wrote: > I wonder what conditions justify the use of protected / public fields? > > I can see how protected fields make more sense for a single user code > because it is easier to not have all those getter/setter methods. But > perhaps for an API with a wide audien

Re: Extensibility of CM classes

2013-07-12 Thread Ajo Fod
I wonder what conditions justify the use of protected / public fields? I can see how protected fields make more sense for a single user code because it is easier to not have all those getter/setter methods. But perhaps for an API with a wide audience, the commitment of providing a field is a big

Re: Extensibility of CM classes

2013-07-11 Thread Benedikt Ritter
A somewhat more academic rationale why making fields protected may be an issue, can be found here: http://dl.acm.org/citation.cfm?id=28702 Benedikt 2013/7/12 Ajo Fod > I see. That makes sense now. > > Thanks. > > On Thursday, July 11, 2013, Phil Steitz wrote: > > > On 7/11/13 12:09 PM, Luc Mai

Re: Extensibility of CM classes

2013-07-11 Thread Ajo Fod
I see. That makes sense now. Thanks. On Thursday, July 11, 2013, Phil Steitz wrote: > On 7/11/13 12:09 PM, Luc Maisonobe wrote: > > Hi Ajo, > > > > Le 11/07/2013 20:38, Ajo Fod a écrit : > >> More classes can be used/extended if fields generally default to > protected > >> instead of private as

Re: [math] Re: Extensibility of CM classes

2013-07-11 Thread Phil Steitz
On 7/11/13 12:09 PM, Luc Maisonobe wrote: > Hi Ajo, > > Le 11/07/2013 20:38, Ajo Fod a écrit : >> More classes can be used/extended if fields generally default to protected >> instead of private as it seems it does in classes in CM now. >> >> Case in point is in : https://issues.apache.org/jira/bro

[math] Re: Extensibility of CM classes

2013-07-11 Thread Luc Maisonobe
Hi Ajo, Le 11/07/2013 20:38, Ajo Fod a écrit : > More classes can be used/extended if fields generally default to protected > instead of private as it seems it does in classes in CM now. > > Case in point is in : https://issues.apache.org/jira/browse/MATH-1003 In fact, having protected members i

Extensibility of CM classes

2013-07-11 Thread Ajo Fod
More classes can be used/extended if fields generally default to protected instead of private as it seems it does in classes in CM now. Case in point is in : https://issues.apache.org/jira/browse/MATH-1003 Cheers, Ajo