jfrisby (Jon Frisby)
- Login: jfrisby
- Registered on: 05/11/2024
- Last sign in: 05/11/2024
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
05/16/2024
-
04:43 PM Ruby Feature #20484: A new pragma for eager resolution of classes referenced in rescue clauses.
- zverok (Victor Shepelev) wrote in #note-3:
> Honestly, it is no different than any name used in a branch that wasn’t tested. E.g. if you have this:
> ...
I would agree that any such opt-in feature should probably catch other cases. I'...
05/12/2024
-
04:25 AM Ruby Feature #20484: A new pragma for eager resolution of classes referenced in rescue clauses.
- duerst (Martin Dürst) wrote in #note-1:
> Can you give an example with actual code to show where you get problems?
The problem I ran into is that the exception class was properly named `SomeModule::SomeClass`, but my rescue block had...
05/11/2024
-
09:41 PM Ruby Feature #20484 (Feedback): A new pragma for eager resolution of classes referenced in rescue clauses.
- I've been using Ruby for 20 years, and just today learned (the hard way) that the class name(s) referenced in a `rescue` clause are not resolved until an exception occurs.
Upon reflection, this behavior probably makes sense in a lot o...