Issue #18942 has been updated by Erik Dalén.
Henrik Lindberg wrote: > I understood that the purpose of adding xor was mainly for checking > exclusivity among parameters. > One idea is to write a function instead. Unfortunately, none of the standard > lib functions have a perfect fit for this (does not improve anything over > writing the logic with and/or/not), but a count function would be helpful, or > perhaps even better, write some asserter functions. and make it a module of > its own. > [...] > > or write an asserter function > [...] Yes, such a count function would fill my needs. I've already hacked one together, but need to test it a bit before sending a pull request for it. So then I'm sort of indifferent if we have a xor operator or not. I don't think it is such a bad idea to have one, provided it is between and & or in precedence. But not strictly necessary. ---------------------------------------- Feature #18942: Puppet should have a xor operator https://projects.puppetlabs.com/issues/18942#change-82240 Author: Erik Dalén Status: Needs More Information Priority: Normal Assignee: Erik Dalén Category: parser Target version: 3.2.0 Affected Puppet version: Keywords: xor parser Branch: https://github.com/puppetlabs/puppet/pull/1436 There should be a 'xor' operator in puppet to complement and & or. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" 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-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
