On Apr 4, 4:28 pm, Andreas Rogge <[email protected]> wrote: > I was thinking about something like "foreach" in the DSL, so you could > simply write something like the following:
Resource declarations already provide iteration comparable to 'foreach' when an array is specified as the resource title. In combination with Puppet defined types, that could support for the lower-level approach of manual iteration over the results of query functions without DSL changes (though the specific details might need to be different from your example). That's a potential advantage of that route. On the other hand, I am well aware that programmers (among whom I account myself) have a tendency to write software that works well for *them*, but not necessarily as well for lesser mortals. I don't know where the best balance of power vs. ease of use would be in this area, but power and flexibility might not be compelling advantages. Best regards, John -- 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.
