On Fri, May 20, 2011 at 8:20 PM, Randall Hansen <[email protected]> wrote:
> http://projects.puppetlabs.com/issues/7606
>
> The spaceship operator:
>
>    User <| group == sysadmin or title == luke |>
>
> Is relatively easy to type but, if you don’t know it, very hard to
> read. We should consider a word-based syntax, e.g.:
>
>    collect User { group == sysadmin or title == luke }
>    User search { group == sysadmin or title == luke }
>
> Please comment on the ticket or reply here, whichever you prefer.

I actually prefer the old syntax because we currently we support the usage of:
User <| title == puppet |> {
  noop => true
}

Would the new syntax deprecate this feature? It seems rather confusing to read:
collect User { group == sysadmin or title == luke } { noop => true }

On this subject, should we support regular expression?
User <| title =~ /*adm/ |>

Should we allow referencing of resources using this syntax?
require => User[ group == sysadmin ]

Thanks,

Nan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users?hl=en.

Reply via email to