Issue #14589 has been updated by Hanmac (Hans Mackowiak).
learn the difference between `to_s` and `to_str`
one is explicit, the other is implicit
----------------------------------------
Bug #14589: "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
https://bugs.ruby-lang.org/issues/14589#change-70898
* Author: Anon92929 (Anon Ymous)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v:
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
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.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>