Actions
Bug #14589
closed"No implicit conversion of XXX to string" asserion should be handled with an explicit string conversion, and it should be a warning not an assertion
Description
Too many people's time have been wasted trying to make sure their puts/prints statements don't assert because of failed implicit string conversions. This should be handled by an explicit .to_s
attempt, and a warning instead of a break.
Updated by Hanmac (Hans Mackowiak) about 6 years ago
learn the difference between to_s
and to_str
one is explicit, the other is implicit
Updated by nobu (Nobuyoshi Nakada) about 6 years ago
- Is duplicate of Bug #13929: TypeError: no implicit conversion of XXXX into string added
Updated by nobu (Nobuyoshi Nakada) about 6 years ago
- Description updated (diff)
- Status changed from Open to Rejected
It's not a good idea to hide a failure and continue with a garbage.
Actions
Like0
Like0Like0Like0