Henrik, Just got done reading through this and it looks quite useful.
I do have a common use case that I'd like to see incorporated if possible though. I would like to have users be able to input either a String or an Array into many variables and have String instances auto-cast to a single unit Array. This would allow me to simplify code where I either have to cast the variable myself or have an if/else chain to do different things based on the input type. Thanks, Trevor On Wed, Jun 18, 2014 at 11:38 AM, Henrik Lindberg < [email protected]> wrote: > On 2014-18-06 3:45, Henrik Lindberg wrote: > > >> I am working on a blog post to cover the new type checking features and >> the various ways they can be used - either "automatically" by declaring >> parameters as typed, or by using the assert_type function when the >> declarative approach is not enough. (Hope to have the blog post ready in >> a day or so) - it will appear as part of the type system blog posts - >> i.e. indexed from this page: >> http://puppet-on-the-edge.blogspot.se/2014/02/the- >> puppet-type-system-blog-posts.html). >> >> > Just off the presses.. > > http://puppet-on-the-edge.blogspot.se/2014/06/optionally-typed-parameters. > html > > > -- > > Visit my Blog "Puppet on the Edge" > http://puppet-on-the-edge.blogspot.se/ > > -- > 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 [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/puppet-dev/lnsbqa%241bh%241%40ger.gmane.org. > > For more options, visit https://groups.google.com/d/optout. > -- Trevor Vaughan Vice President, Onyx Point, Inc (410) 541-6699 [email protected] -- This account not approved for unencrypted proprietary information -- -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CANs%2BFoW80U_HHJmXEW9rpGKQ_Us_K4evmCMhxqcN-JrxqdTLKw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
