On May 28, 2010, at 12:41 PM, donavan wrote: [...]
I also don't like the idea of just relying on a function - I'd like a class to be able to declare that it relies on external data, so that users know what they can configure in their class.Isn't this part of parameterized classes? Today I'd probably do 'if $value == "" { fail("must define \$value") }' where required.
Yes, any syntactical support for this would need to rely on parameterized classes, but it would be in addition to them, not automatically a result.
-- The people who are regarded as moral luminaries are those who forego ordinary pleasures themselves and find compensation in interfering with the pleasures of others. -- Bertrand Russell --------------------------------------------------------------------- Luke Kanies -|- http://puppetlabs.com -|- +1(615)594-8199 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" 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-dev?hl=en.
