On Wed, 2008-11-19 at 08:43 -0600, Luke Kanies wrote:
> +1, although it might be worth always defaulting to strings if the two  
> arguments aren't of the same type.

In fact it will raise an ArgumentError if both arguments are of
different types which is IMHO safer, and I'm not even sure that's fully
correct since in ruby it seems that equality and inequality are not
fail-safe unlike < and >:

"one" == 1 is valid (and returns false)
"one" < 1 is not valid (ArgumentError)

I don't find this really consistent...
-- 
Brice Figureau <[EMAIL PROTECTED]>


--~--~---------~--~----~------------~-------~--~----~
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