On Friday, August 24, 2012 6:02:54 PM UTC-5, Nick Fagerlund wrote:
>
> Yeah that reply isn't coming back. Anyway, I was totally hoping you'd 
> chime in with some holes you found. :)
>
> On Friday, August 24, 2012 6:33:01 AM UTC-7, Henrik Lindberg wrote:
>
>> - Arrays and Hashes are mutable; which is either an bug or a language 
>> feature. While it is not allowed to directly change a variable, it can 
>> be indirectly modified if it refers to an array or hash. Great if the 
>> documentation can clarify if this is a supported feature or should be 
>> avoided. i.e. $a = [1,2,3] $a[0] = 10. (IMO, this is problematic as any 
>> logic can refer to the variable and assign to an entry - at least last I 
>> tried). 
>>
>
> D:< EWW. "Problematic" is putting it mildly, especially since behavior is 
> inconsistent between arrays and hashes. (Both can add, only arrays can 
> reassign to existing indexes.) But I'd better document it anyhow. 
>


Good grief, don't do that!  If it actually gets published in an official PL 
document then it may be Puppet 4 before it can be removed!


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/dV4giv4MC4IJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to