General

Profile

Marc-Andre Lafortune

Issues

Projects

Activity

08/25/2016

06:44 PM Ruby trunk Feature #12697: Why shouldn't Module meta programming methods be public?
Hi,
As stated by bughit, a typical case where we have to resort to `send` for these is in meta programming, say:
...

08/24/2016

12:21 PM Ruby trunk Feature #12697: Why shouldn't Module meta programming methods be public?
I made the same proposal years ago (#6539), and Matz stated that he ["thinks class/module operations should be done i...

08/17/2016

01:40 AM Ruby trunk Bug #12682 (Rejected): Hash#flatten(level) does not recursively flatten inner hashes.
The documentation of `Array#flatten` is pretty clear:
"...That is, for every element that is an **array**, extract...

08/15/2016

03:20 PM Ruby trunk Feature #12512: Import Hash#transform_values and its destructive version from ActiveSupport
Yukihiro Matsumoto wrote:
> From our discussion, we concerned `map_values` is too close to `map.values`, which has t...

08/13/2016

08:01 AM Ruby trunk Feature #12665: Faster prime? method for prime.rb std lib
Sorry if I wasn't clear. It has been committed.

08/10/2016

06:20 PM Ruby trunk Feature #12665 (Closed): Faster prime? method for prime.rb std lib
Ok. Let's not go more complicated than this though.
Thanks
06:17 PM Ruby trunk Revision 55856: * lib/prime.rb: Optimize prime?
Adapted from patch by Jabari Zakiya [#12665]
* test/test_prime.rb: Improve test
04:43 PM Ruby trunk Feature #12512: Import Hash#transform_values and its destructive version from ActiveSupport
`map_values` is good, succinct and clear. 'v' is an unclear abbreviation, made worse by the existence of other method...

06/08/2016

11:18 PM Ruby trunk Bug #11953: ThreadError in 2.3 on code that works on 2.2.4
Hi.
> this is happening in code that doesn't define new
I'm sorry if I'm missing something, but could you pleas...
05:58 AM Ruby trunk Bug #11953: ThreadError in 2.3 on code that works on 2.2.4
So, a minimal example is:
```
require 'prime'
class Prime
def new
end
end
# access instance, directly...

Also available in: Atom