On Jan 18, 5:01 am, Ryan Bowlby <rbowlb...@gmail.com> wrote: > I noticed you fully qualify variables within the very class they were > assigned. Is that best practice now?
Not that I am aware. If you want to adopt that as a local convention, however, I don't think it's contrary to best practices either. Personally, I think it's convenient and more readable to refer to local variables via their unqualified names, and it emphasizes that they are indeed local. When dynamic scoping goes away in Telly, Puppet in fact will enforce that unqualified names are local. On the other hand, referring to variables only via their fully- qualified variables makes it easier to cut & paste code between classes, and it explicitly avoids dynamic scoping in Puppet 2.7.x and earlier. Adherents of each approach would probably identify additional advantages. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.