in reply to Re: Use globals or pass around everything under the sun?
in thread Use globals or pass around everything under the sun?
There are valid uses of a Singleton pattern where it is a win. If producing your variable is expensive, and so you want to do it lazily, then Singletons are great. They are then basically an OO way of expressing memoization. But for just expressing configurations, what is the big win supposed to be?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 2: Use globals or pass around everything under the sun?
by lachoy (Parson) on Dec 04, 2001 at 18:42 UTC | |
by tilly (Archbishop) on Dec 04, 2001 at 19:32 UTC | |
by lachoy (Parson) on Dec 04, 2001 at 20:29 UTC | |
by tilly (Archbishop) on Dec 04, 2001 at 21:19 UTC | |
by dragonchild (Archbishop) on Dec 04, 2001 at 18:48 UTC | |
|
Re: Re (tilly) 2: Use globals or pass around everything under the sun?
by dragonchild (Archbishop) on Dec 04, 2001 at 18:28 UTC | |
by tilly (Archbishop) on Dec 04, 2001 at 18:40 UTC |