I hate to "me too" but I'm actually a pretty big fan of the metaparam too,
it's very readable and clear.


On Wed, Aug 6, 2014 at 11:41 AM, Ben Ford <[email protected]> wrote:

> I really like the metaparameter approach. It's almost self documenting.
>
>
>
> On Tuesday, August 5, 2014 6:41:40 PM UTC-7, Reid Vandewiele wrote:
>>
>> Maybe solving for this use case would be better handled by implementing
>> something that looks and feels like a metaparameter rather than trying to
>> come up with new syntax. That approach would have the benefit of not
>> complicating the language, and meet all of the functional requirements
>> discussed so far. It would also be google-able. There would need to be some
>> design around the choice of a name for the "metaparameter", but it's easy
>> enough to demonstrate the concept with a stand-in like "attribute_defaults"
>> or "attribute_hash".
>>
>> Example 1 (assuming behavior whereinmerging is OK, and that explicit
>> parameter specification takes precedence):
>>
>> apache::vhost { $servername:
>>   port => $port,
>>   ssl  => $ssl,
>>   attribute_defaults => $extra_opts,
>> }
>>
>>   --
> 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/1d38a4dd-596e-4338-b0d5-f6117f3a6052%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-dev/1d38a4dd-596e-4338-b0d5-f6117f3a6052%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Ashley Penney
[email protected]
Module Engineer

*Join us at PuppetConf 2014**, September 23-24 in San Francisco
- http://puppetconf.com <http://puppetconf.com/>*

-- 
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/CAC9eg%2B%3DJVPygNqMiq0Ck8WjBz4Sa89nu1XiJQi%2BzUKvehiBOKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to