Issue #5824 has been updated by Dan Bode.

inconclusive :) looks like a pretty even split for/against

  for = it's useful syntactic sugar
  against = adds more unwarranted complexity to the DSL

The recommended alternative was

  class foo requires Yay[boo] {...}

It could be worth seeing if people have more opinions now 2.6 has been out for 
a while.
----------------------------------------
Feature #5824: Puppet language should have self keyword
https://projects.puppetlabs.com/issues/5824

Author: Dan Bode
Status: Needs More Information
Priority: Normal
Assignee: Nigel Kersten
Category: language
Target version: 
Affected Puppet version: 2.6.0
Keywords: Self reference 
Branch: 


With the introduction of the new relationship syntax, I often find myself doing:


<pre>
class myclass {
  Class['myclass']->Resource['sometitle']
}
</pre>


It would be nice to be able to reference myself as follows:

<pre>
class myclass {
  Self->Resource['sometitle']
}
</pre>


-- 
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 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-bugs?hl=en.

Reply via email to