You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I think we can all agree that it would be better, however this would introduce some interesting behavior from the user POV. I wonder whether we want to support both, configure it globally, deprecate? Either way I think you should try to PR the replacement one, lets see what breaks in existing specs alone.
Currently Hashie is coercing to core types with conversion methods:
#to_i
#to_f
#to_c
#to_r
#to_s
#to_sym
Some of these methods are pretty lenient and may produce undesirable results. There are Kernel methods to cast types that are more strict, like Float:
Would it be better if Hashie used the stricter approach by default?
The text was updated successfully, but these errors were encountered: