[#23231] What do you think about changing the return value of Kernel#require and Kernel#load to the source encoding of the required file? — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <ed.odanow@...>

Dear Ruby developers and users!

8 messages 2009/04/17

[#23318] [Feature #1408] 0.1.to_r not equal to (1/10) — Heesob Park <redmine@...>

Feature #1408: 0.1.to_r not equal to (1/10)

19 messages 2009/04/26

[ruby-core:23232] [Bug #1336] Change in string representation of Floats

From: Roger Pack <redmine@...>
Date: 2009-04-17 13:02:21 UTC
List: ruby-core #23232
Issue #1336 has been updated by Roger Pack.


> In addition, the change actually attacked my some scripts... :-(

Does it still break them? Can anyone give an example where the "more honest" #to_s broke their scripts (for my curiosity sake).
It seems the general thought currently is that to_s should be "dishonest" and inspect should be "honest"?  This would work well, as at least in irb users would know more precisely what was going on, while still preserving pretty output and backwards compat.
Thanks.
-=r
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1336

----------------------------------------
http://redmine.ruby-lang.org

In This Thread