From: Matthew Kerwin <matthew@...> Date: 2012-12-11T06:09:16+09:00 Subject: [ruby-core:50741] Re: [ruby-trunk - Bug #7539] Misleading error message "can't convert nil into string" --047d7b2ee28154f00204d085fa1b Content-Type: text/plain; charset=ISO-8859-1 I support adding the 'implicit' word to the error message. > "no implicit conversion of nil into String" I remember when I first encountered it, knowing to search for "implicit conversion" would have helped me understand the difference between #to_s and #to_str earlier. [note: it's more than just implementing #to_str , there are other implications for implicit casting] --047d7b2ee28154f00204d085fa1b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <p>I support adding the 'implicit' word to the error message.</p> <p>> =A0 =A0 "no implicit conversion of nil into String"</p> <p>I remember when I first encountered it, knowing to search for "impl= icit conversion" would have helped me understand the difference betwee= n #to_s and #to_str earlier.</p> <p>[note: it's more than just implementing #to_str , there are other im= plications for implicit casting]</p> --047d7b2ee28154f00204d085fa1b--