On Sunday, August 10, 2014 7:11:11 PM UTC-7, Trevor Vaughan wrote:
>
> Yeah, I know that it doesn't actually mutate. But it *feels* like it does, 
> which is the issue.
>
> Trevor
>

For this reason I would advocate omission of += and -= from the language.

The problem is not that the behavior is inconsistent or that it breaks any 
-rules-, per se. The problem is that the behavior is non-intuitive and not 
just in a difficult-to-guess-at way, but in a can-directly-confuse-users 
way. Yes, $fqdn is potentially different from $::fqdn but if we're trying 
to guide people into a mindset of "variables are immutable" we should not 
muddy the waters with syntax that looks contradictory to that paradigm - 
especially if all it gains us is saving a few characters being typed.

I believe this constitutes a compelling design reason to remove += and -=.

~Reid

-- 
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 puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/4a0b0503-dd0a-408f-b856-afe91374a924%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to