General

Profile

matheusrich (Matheus Richard)

  • Login: matheusrich
  • Email: [email protected]
  • Registered on: 01/24/2021
  • Last sign in: 01/09/2026

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 3 4 7

Activity

10/15/2025

06:55 PM Ruby Misc #21606: DevMeeting-2025-10-23
- [Feature #21615] Introduce `Array#values`
- Seems reasonable to have an API to simplify traversal of hash/array values
- There is some precedence, since both Hashes/Arrays have #values_at.
- If approved, should it be added to ...
matheusrich (Matheus Richard)

09/24/2025

02:23 PM Ruby Feature #21615: Introduce `Array#values`
@Dan0042 I considered that. I thought it would be too much for one PR. I'll wait for more feedback, and if people are positive about this, I'll propose `Set#values` too. matheusrich (Matheus Richard)
02:26 AM Ruby Feature #21615: Introduce `Array#values`
> I think it should be Array.new(*self).
I can do that, sure.
> ...
Noted! Good to know.
> Why not to introduce Array#each_value?
I think it feels clunkier than `array.values.each`, but is an alternative I considered. IMO it...
matheusrich (Matheus Richard)

09/23/2025

10:04 PM Ruby Feature #21615 (Rejected): Introduce `Array#values`
## Motivation
In Ruby code, it's common to accept arrays and hashes and treat them uniformly as collections of values. `Hash` exposes `#values`, but `Array` does not, which pushes developers toward `is_a?`/`respond_to?` branching.
...
matheusrich (Matheus Richard)

09/12/2025

05:03 AM Ruby Revision 6d2c7d7d (git): [rubygems/rubygems] Raise error on missing version file
If the file option is given but the file not found, raise a GemfileError
with a message indicating the file was not found.
Currently this is raising a generic Errno::ENOENT error.
https://github.com/rubygems/rubygems/commit/db61de6b21
matheusrich (Matheus Richard)

08/22/2025

03:15 PM Ruby Feature #21518: Statistical helpers to `Enumerable`
An `average` alias would be nice, though. matheusrich (Matheus Richard)

08/21/2025

01:30 PM Ruby Feature #21533: Introduce `Time#am?` and `Time#pm?`
> Formatting times should be done with an appropriately internationalized library.
This is not formatting. This is intended for querying, much like we have `monday?` and other methods.
> ...
I'm sorry, I don't follow. The possibility t...
matheusrich (Matheus Richard)
01:18 PM Ruby Feature #17316: On memoization
@matz I propose `?=` as the uninitialized assignment operator:
```rb
@foo ?= some_heavy_calculation(...)
```
matheusrich (Matheus Richard)

08/18/2025

02:53 PM Ruby Feature #21545: #try_dig, a dig that returns early if it cannot dig deeper
Just want to point out that Ruby itself doesn't have any concept of `try`. This *might* be best as a proposal for Active Support. matheusrich (Matheus Richard)

08/15/2025

06:14 PM Ruby Misc #21508: DevMeeting-2025-08-21
* [Feature #21533] Introduce `Time#am?` and `Time#pm?`
* Thoughts on the name and functionality?
* I think this is the less ambiguous way to have info about a part of the day that works across cultures (and is consistent with strft...
matheusrich (Matheus Richard)

Also available in: Atom