Re: [Pharo-project] Singleton access selector

2012-05-14 Thread Nicolas Cellier
To me, default and current suggest these are not singleton, and I wouldn't be surprised to see a specific, previous and next instances. Nicolas 2012/5/14 Sean P. DeNigris s...@clipperadams.com: I've noticed we use a buffet of accessors for singletons, like #default, #instance, #current... it'd

Re: [Pharo-project] Singleton access selector

2012-05-14 Thread Mariano Martinez Peck
On Mon, May 14, 2012 at 6:24 AM, Sean P. DeNigris s...@clipperadams.comwrote: I've noticed we use a buffet of accessors for singletons, like #default, #instance, #current... it'd be nice to just pick one. I like #instance, but could live with any as long as I never have to guess which one from

Re: [Pharo-project] Singleton access selector

2012-05-14 Thread Esteban Lorenzano
On Mon, May 14, 2012 at 9:42 AM, Mariano Martinez Peck marianop...@gmail.com wrote: On Mon, May 14, 2012 at 6:24 AM, Sean P. DeNigris s...@clipperadams.comwrote: I've noticed we use a buffet of accessors for singletons, like #default, #instance, #current... it'd be nice to just pick one.

Re: [Pharo-project] Singleton access selector

2012-05-14 Thread Nicolas Cellier
Historically, #soleInstance can be found in st80 I think. Nicolas 2012/5/14 Esteban Lorenzano esteba...@gmail.com: On Mon, May 14, 2012 at 9:42 AM, Mariano Martinez Peck marianop...@gmail.com wrote: On Mon, May 14, 2012 at 6:24 AM, Sean P. DeNigris s...@clipperadams.com wrote: I've

Re: [Pharo-project] Singleton access selector

2012-05-14 Thread Carla F. Griggio
For personal/work projects, I also use #uniqueInstance. It's true that if #current is used for singleton instances it could be ambiguous. On Mon, May 14, 2012 at 7:12 AM, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: Historically, #soleInstance can be found in st80 I think.

Re: [Pharo-project] Singleton access selector

2012-05-14 Thread Sean P. DeNigris
Mariano Martinez Peck wrote Indeed. For me it depends in the case. Fair enough, but let's have a protocol. For example, UIManager default... From Mac dictionary: default: a preselected option... when no alternative is specified by the user Is that really what we mean? I don't think so. It

Re: [Pharo-project] Singleton access selector

2012-05-14 Thread Esteban Lorenzano
On Mon, May 14, 2012 at 3:43 PM, Sean P. DeNigris s...@clipperadams.comwrote: Mariano Martinez Peck wrote Indeed. For me it depends in the case. Fair enough, but let's have a protocol. For example, UIManager default... From Mac dictionary: default: a preselected option... when no

[Pharo-project] Singleton access selector

2012-05-13 Thread Sean P. DeNigris
I've noticed we use a buffet of accessors for singletons, like #default, #instance, #current... it'd be nice to just pick one. I like #instance, but could live with any as long as I never have to guess which one from a list again :) Sean -- View this message in context: