On 29 May 2013 18:29, Andy Parker <[email protected]> wrote:

> On Wed, May 29, 2013 at 8:47 AM, Erik Dalén 
> <[email protected]>wrote:
>
>> I would like to allow regexps to be passed as function parameters, do you
>> others think that is a good idea? And do you think it should be added to
>> only the future parser in that case?
>>
>>
> What are the issues that are preventing this from happening right now? I
> can imagine that the current parser doesn't allow them in that position,
> and the future parser probably allows it already.
>

Neither parser allows them in that position. But once they are allowed it
is not really any problem.

Would be good to be able to construct them in some way as well though, as
in https://projects.puppetlabs.com/issues/9450

But at the moment we have a couple of functions in stdlib where the only
difference is that one of them treats the string argument as a regexp and
the other as a string. That feels a bit wrong IMO.

-- 
Erik Dalén

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to