On Apr 19, 2012, at 1:21 AM, Ken Barber wrote: >> If I want a top-level variable, I'll ask for one. If I want a node-level >> variable, I'd like to be able to ask for one (which I can't today afaik). I >> never want either of them unless I ask for them by name. >> >> Yes, I do. Or an option to enable that at least. I realize that many people >> love a big swash of global variables, so I'm going against the stream. In >> fact, I would appear to be going against the grain of ruby itself. But >> sometime after your module repository breaks 20k lines of code you really >> want to strangle something every time you get a variable collision you never >> intended inside what should be a tight a lexical scope. > > This is a very good point Jo, debug-ability is certainly important. >
Absolutely. Debugging is always made fiendishly difficult when there is "action at a distance" stuff going on. Limiting that kind of interaction is why globals are frowned upon in most programming. Is there a lot of use of globals (topscope) other than facts (and enc parameters, I guess) in puppet? > ken. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/puppet-dev?hl=en. > -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
