News for hackers. Stuff that matters.
Re:My Objection to Array#sum by cbeust on Thursday April 09, 2009 @05:53PM (#555236)
> Because of this, I'm tending to believe that > adding more strong-typing to languages is a > losing battle,

I see this at the opposite.

Just because an object says that it responds to a method doesn't guarantee that invoking said method will succeed. I'm not sure why the original poster is so surprised by this finding.

Since this observation is valid in both statically and dynamically typed languages, I prefer a statically typed one since at least, I don't need to verify that the object does respond to that method before calling it.

Re:My Objection to Array#sum by raganwald on Thursday April 09, 2009 @09:41PM (#555530)
A question and answer that might be relevant: http://www.reddit.com/r/ruby/comments/8ba5g/my_objection_to_...