Ask HN: Ruby, not loosely typed enough?

https://news.ycombinator.com/item?id=2050722
by seasoup • 16 years ago
1 1 16 years ago

I've spent a half day debugging a ruby on rails app having to figure out where to put the .to_f so it doesn't screw things up (in more then one place in the code).

Why does Ruby have explicit integer and float classes instead of just one numeric class? I understand the precision has to cut off somewhere, but having to handle this int vs float is just silly.

Related Stories

Loading related stories...

Source preview

news.ycombinator.com