On Sun, Jun 05, 2011 at 09:36:59AM -0700, Douglas Garstang wrote: > Hmmm.... Ok then..... I'll change my question to, why doesn't the style > guide say to stick with double quotes for all strings and keep it > consistent?
Most languages honour the convention that variables are not expanded within single quotes. I always use single quotes unless expansion is a requirement or the string itself contains single quotes; it signals to the interpreter/compiler that it need not inspect the string contents for expansion and saves a few cpu cycles. It signals the same to the alert human reader who may be debugging the code. I consider that more valuable than consistency for consistency's sake. -- Bruce I must admit that the existence of Disneyland (which I know is real) proves that we are not living in Judea in AD 50. -- Philip K. Dick -- 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.