Issue #16373 has been updated by Henrik Lindberg.
Not sure if it clear that the implication is that names may not start with a digit (class, define, parameters, attributes, etc.). References to resources where such a reference is a bare word starting with a digit must also be changed to use quotes. Because of this, I suggest that this is first done as a deprecation, and a warning - "not numeric" in 3.x, to be replaced with a hard error in 4.x. ---------------------------------------- Feature #16373: Improve validation of Numbers https://projects.puppetlabs.com/issues/16373#change-72858 Author: Henrik Lindberg Status: Accepted Priority: Normal Assignee: Henrik Lindberg Category: language Target version: Affected Puppet version: Keywords: DSL correctness Branch: Currently, the style guide states that numeric values should be stated using single quoted strings, i.e. that file mode, should be expressed as '0ooo' (o being an octal digit). IMO, this is backwards; it would be far better if bare words that starts with a digit always validated as numeric; there is no way that can be done when expressed as a string. I propose that '0WTF', '0xWTF', and '123a' are legal, but not 0WTF (not octal), 0xWTF (not hex), nor 123a (not decimal). -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" 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-bugs?hl=en.
