----- Original Message -----
> 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?
> 

i dont like it either but its probably to make you think about your strings
and when you specifically want variable expansion.

also consider the common case of making yum repos:

yumrepo{"foo": baseurl => 
'http://mirror.netcologne.de/centos/$releasever/os/$basearch/'}

always using 's means you wont accidentally expand $releasever and $basearch.  
There are 
many cases where string expansion is not desirable like above.

I prefer double quote wherever possible personally.

> 
> On Sun, Jun 5, 2011 at 9:30 AM, R.I.Pienaar < r...@devco.net > wrote:
> 
> 
> 
> 
> 
> 
> 
> ----- Original Message -----
> > The style guide says to use single quotes, except when variables
> > are
> > present in the string, and then double quotes should be used.
> > 
> > 
> > That bothers me. It means your using two different types of quotes,
> > when just one could be used. I mistakingly used single quotes
> > around
> > a string with a ${variable} in it, and it seemed to work fine. Any
> > reason we can't just stick to single quotes?
> 
> you're confused.
> 
> notice('${fqdn}')
> 
> notice: Scope(Class[main]): ${fqdn}
> 
> variables are not expanded in single quotes.
> 
> --
> 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 .
> 
> 
> 
> 
> --
> Regards,
> 
> Douglas Garstang
> http://www.linkedin.com/in/garstang
> Email: doug.garst...@gmail.com
> Cell: +1-805-340-5627
> 
> 
> 
> --
> 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.
> 

-- 
R.I.Pienaar

-- 
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.

Reply via email to