On 26/09/09 1:18, [email protected] wrote:
> A few concerns that have occurred to me:
> 
> * Can regular expressions be assigned to variables?

No.

> * Can the appear in arrays?

No.

> * Can they be passed as arguments?

No.

> * Are case branch bodies always surrounded by braces?

Yes.

To summarize, I didn't want to make regexes in the Puppet DSL as a type 
since there is no "real" type information. So regexes are used only in 
some specific situations and you can't do:

$a = /regex/
if "value" =~ $a

There is less sense to do this in Puppet DSL than in any other language, 
so I didn't feel it was necessary.

What I'm planning to add sooner or later to the DSL if nobody objects is:
  * more place where you can use expressions (ie function arugments, 
case  and selectors).
  * hash containers

> All of these are trivial to deal with but since we prohibit everything that 
> isn't explicitly allowed, 
> I just want to ask these sorts of questions now, not later.

Sure, you're right.

> Sent via BlackBerry from T-Mobile

What?! You don't have an i-phone :-)
-- 
Brice Figureau
My Blog: http://www.masterzen.fr/


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to