On Fri, Jul 18, 2014 at 8:55 AM, Henrik Lindberg < [email protected]> wrote:
> On 2014-18-07 17:42, Andy Parker wrote: > >> On Fri, Jul 18, 2014 at 12:47 AM, Peter Meier <[email protected] >> <mailto:[email protected]>> wrote: >> >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> > Can we get rid of this, it is bad enough that all other keywords >> > can be used (if, unless, case, class, define, etc. etc.) >> >> Couldn't we ban them as well? I think in most other "programming" >> languages this won't work as well. >> >> >> We tried that, accidentally, when we added some new keywords. Lots of >> things broke. In fact one of the core types uses a keyword: exec uses >> unless. >> >> Yeah, there are a few that makes sense; "class", "unless", "define", > "type", "inherits", "not" comes to mind as possibly meaningful names (there > may be others). Since that is like half of them, we could just support all > of them. The keywords true/false are different in that they produce boolean > values. There is no great harm in continuing to support them; I just find > it odd to name an attribute "true" or "false", and we already have > confusion over "false" vs. false. > > Yes, getting rid of false and true makes sense since those are literal values (like 1 is a literal integer value). > > > - henrik > > -- > > Visit my Blog "Puppet on the Edge" > http://puppet-on-the-edge.blogspot.se/ > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/puppet-dev/lqbg28%24oei%241%40ger.gmane.org. > > For more options, visit https://groups.google.com/d/optout. > -- Andrew Parker [email protected] Freenode: zaphod42 Twitter: @aparker42 Software Developer *Join us at PuppetConf 2014 <http://www.puppetconf.com/>, September 22-24 in San Francisco* *Register by May 30th to take advantage of the Early Adopter discount <http://links.puppetlabs.com/puppetconf-early-adopter> **—**save $349!* -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CANhgQXsvgn_OgHs6%2BFSDDA%3D-kveYhMFSVuLsafZMeqSdp8dEZQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
