Thomas Sawyer

  • Registered on: 09/07/2008
  • Last connection: 11/02/2014

Activity

Reported issues: 113

11/27/2014

01:57 AM Ruby trunk Misc #10549: Deprecate each_with_index and each_with_object in favor of with_index and with_object
If Functors* (https://bugs.ruby-lang.org/issues/6594) could be built into the language proper, then what you suggest ...

11/17/2014

01:38 PM Ruby trunk Feature #10498: Make `loop` yield a counter
I always thought it would be most convenient if all loops had an intrinsic counter `$i`.

11/02/2014

05:19 PM Ruby trunk Feature #7793: New methods on Hash
I can't help but mention it, because it gave me a chuckle....
I like `rekey` and `revalue` from #4, because they m...

09/19/2014

07:38 PM Ruby trunk Feature #10254: Array#each and Array#map for nested arrays
It's a shame it's not `map_flat`, and thus in this case `map_nested`, as it would organize documentation in a nicer f...

09/06/2014

04:14 PM Ruby trunk Feature #7793: New methods on Hash
An issue with the name is that "map" semantically means to create an Array, i.e.`ahash.map{ |k,v| ... }` produces an ...

08/29/2014

01:40 PM Ruby trunk Feature #10183: An alternative name for method `class`
I once suggested `object_class` to go along with `object_id`.
Also, see https://bugs.ruby-lang.org/issues/6478 whi...

08/19/2014

01:00 PM Ruby trunk Feature #10095: Object#as
I agree with Rafael, `#itself` isn't the right method.
It reminds me of `#send` more than anything else.
(2...

05/14/2014

10:12 PM Ruby trunk Feature #6074: Allow alias arguments to have a comma
Special cases always make me cringe. Why is alias a special case anyway? It seems very odd since alias_method is a me...

04/25/2014

03:46 PM Ruby trunk Feature #9704: Refinements as files instead of modules
Ah, attack the problem from the other way round. That's a great idea!

04/22/2014

03:57 PM Ruby trunk Feature #9704: Refinements as files instead of modules
I realized there is a downside to this approach.
~~~
# a.rb
require 'b'
class String
def ab
self + "a" ...

Also available in: Atom