Title: Message Title
Henrik Lindberg commented on an issue
Puppet / Improvement PUP-514
Add optional type to parameters
It is of great value to be able to optionally type the parameters of defines and classes (as well as types).

This is quite easy to implement as there now is a type system.
The default type is Optional[Variant[Object,Type]] i.e. "anything"

To optionally type a parameter simply enter the type before the parameter:
{code}
define foo(String $x, Integ...


--
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 puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.

Reply via email to