Alright. I've put the change in.

On Wed, Apr 21, 2010 at 12:49 PM, Markus Roberts <[email protected]>wrote:

> J --
>
> that doesn't feel typesafe to me, notice that my predicates are all calling
>> different methods - my impression is that it's a lucky coincidence that
>> NilClass, Regexp, and String's various === operations happen to DWIM in each
>> of these situations.
>> of course, I imagine that you'll reply that it's not a coincidence, that
>> you and Matz painstakingly developed this to work in 1992.
>>
>
> I had nothing to do with it but yeah, it is very much by design.  That's a
> core duck-typing example, predating (IIRC) the term "duck-typing" itself.
> And I'm not sure that "type safe" is even meaningful here; the idea is that
> you have some value and you want to dispatch based on that value, going to
> the first clause that accepts the value.  The operative "type" (really,
> class) is Object, and since _all_ values are Objects...
>
> -- M
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<puppet-dev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-dev?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" 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-dev?hl=en.

Reply via email to