General

Profile

tokland (Arnau Sanchez)

  • Login: tokland
  • Email: pyarnau@gmail.com
  • Registered on: 03/24/2011
  • Last sign in: 02/13/2014

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

02/13/2014

10:38 AM Ruby Feature #666: Enumerable::to_hash
For those interested in this feature, check #7292, Marc-Andre implemented Array#to_h and Enumerable#to_h. It's not as powerful (since it takes no block, you'll usually need to create an intermediate array with "map"), but it's definitely... tokland (Arnau Sanchez)

08/06/2012

10:35 PM Ruby Feature #2172: Enumerable#chunk with no block
Any decision about this? For me it's a clear +1, chunking by the values unchanged is very common (not that it's representative, but I checked my code: 4 ocurrences of chunk, all with the identity block) tokland (Arnau Sanchez)

01/12/2012

09:36 PM Ruby Feature #5185: Set#merge acts in place but Hash#merge does not
+1, I just got bitten by this. Hash#merge returns a new object, so one should expect Set#merge to behave the same way (Principle of Least Surprise).
Set#merge!, Set#update or Set#union! for in-places unions sound good to me.
tokland (Arnau Sanchez)

11/05/2011

11:47 PM Ruby Feature #5574 (Rejected): Make arrays comparable
Why are arrays not comparable? _Array_ already defines _<=>_, so it seems only natural to mix-in the _Comparable_ module. tokland (Arnau Sanchez)

03/24/2011

05:35 AM Ruby Feature #666: Enumerable::to_hash
=begin
Hi,
I don't know if it's polite to comment in old closed issues, excuse me if it's not.
I have to say that I wholeheartedly agree with Marc-Andre: the lack of Enumerable-to-Hash conversion is important; in my experience it's an...
tokland (Arnau Sanchez)

Also available in: Atom