marcandre (Marc-Andre Lafortune) - Ruby Issue Tracking System
- Login: marcandre
- Email: marcandre-ruby-core@marc-andre.ca
- Registered on: 10/20/2008
- Last sign in: 11/18/2025
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 2 | 140 | 142 |
| Reported issues | 22 | 198 | 220 |
Projects
| Project | Roles | Registered on |
|---|---|---|
| Ruby | Committer | 09/10/2009 |
Activity
05/20/2024
-
01:26 PM Ruby Feature #20498: Negated method calls
- MaxLap (Maxime Lapointe) wrote in #note-7:
> @nobu: I'd say it's both syntax sugar and an operator, just like `&.`.
Seems like pure syntax sugar.
That's not to say it's not a good idea. It's difficult to say if the added convenien...
03/05/2024
-
03:21 PM Ruby Bug #20325 (Closed): Enumerator.product.size bug with zero * infinite enumerators
- ``` ruby
Enumerator.product([], 1..).to_a # => [] (OK)
Enumerator.product([], 1..).size # => Infinity (Should be 0)
```
marcandre (Marc-Andre Lafortune)
05/18/2023
-
04:39 AM Ruby Feature #19634: Pattern matching dynamic key
- Some actual examples of dynamic key matching in Elixir: https://github.com/search?q=%2F%25%5C%7B%5C%5E%2F+&type=code marcandre (Marc-Andre Lafortune)
-
04:28 AM Ruby Feature #19634: Pattern matching dynamic key
- FWIW, Elixir actually supports it, but I don't recall seeing it used in the wild
``` elixir
map = %{mentor_name: "Joe"}
value = "Joe"
key = :mentor_name
match?(%{^key => ^value}, map) # => true
```
OTOH, Elixir does not support `[*, ^... marcandre (Marc-Andre Lafortune)
06/19/2022
-
02:19 PM Ruby Feature #18841: Proposal: autoload_relative
- Note that this is a duplicate of https://bugs.ruby-lang.org/issues/15330, which includes some real world usage stats.
Making it strict seems like a good idea too. marcandre (Marc-Andre Lafortune)
07/27/2021
-
05:48 PM Ruby Bug #18018: Float#floor / truncate sometimes result that is too small.
- jeremyevans0 (Jeremy Evans) wrote in #note-5:
> > A correct algorithm seem to be to rely on `Rational#floor`:
> ...
My bad 🤦♂️ Rational#floor makes sense for rationals, but is not what we can use. Not sure how I got confused.
> I t... marcandre (Marc-Andre Lafortune)
07/25/2021
-
05:36 PM Ruby Bug #18018: Float#floor / truncate sometimes result that is too small.
- jeremyevans0 (Jeremy Evans) wrote in #note-3:
> This issue also goes the other direction:
> ...
Well, that `f` *is* the same float (291.4), I don't understand your point, sorry.
> marcandre (Marc-Andre Lafortune) wrote:
> ...
Maybe... marcandre (Marc-Andre Lafortune)
07/09/2021
-
06:34 AM Ruby Bug #18032 (Rejected): Openstruct is ~20..25x slower with Ruby 3.0.0 and 3.0.1 compared to earlier versions
- @mame is correct that #15409 was a concern, but this is mainly due to #12136 and listed in the release notes for 3.0.
Basically we have prioritized correctness over performance and came back to a solution similar to that of Ruby 2.2.
... marcandre (Marc-Andre Lafortune)
07/08/2021
-
09:56 PM Ruby Feature #17924: Range#infinite?
- Seems reasonable to me.
PR at: https://github.com/ruby/ruby/pull/4535 marcandre (Marc-Andre Lafortune)
07/02/2021
-
12:47 PM Ruby Bug #18018: Float#floor / truncate sometimes result that is too small.
- sawa (Tsuyoshi Sawada) wrote in #note-1:
> With:
> ...
Yes, that is what I meant, thanks. marcandre (Marc-Andre Lafortune)
Also available in: Atom