[#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:23295] Re: [Feature #666](Rejected) Enumerable::to_hash

From: Michael Fellinger <m.fellinger@...>
Date: 2009-04-23 13:55:06 UTC
List: ruby-core #23295
On Wed, 22 Apr 2009 05:45:06 +0900
Marc-Andre Lafortune <ruby-core-mailing-list@marc-andre.ca> wrote:

> I believe the latter form is not only more concise but much more
> expressive.
> 
> My final comment would be that although 40 inject({}), a couple of
> returning({}) and other places I don't know of in the whole of rails'
> code is not that much. Just for comparision's sake, there are only 2
> uses of #assoc, 0 of #rassoc, 1 of #partition, 3 of #grep, etc... So I
> believe that #to_hash would be reasonably useful.

Doesn't the new behaviour of Hash::[] solve these cases just as well?

-- 
^ manveru

In This Thread