josh.cheek (Josh Cheek)
- Login: josh.cheek
- Email: josh.cheek@gmail.com
- Registered on: 06/10/2011
- Last sign in: 11/10/2022
Issues
open | closed | Total | |
---|---|---|---|
Assigned issues | 0 | 0 | 0 |
Reported issues | 0 | 23 | 23 |
Activity
07/04/2021
- 10:56 AM Ruby master Bug #18011: `Method#parameters` is incorrect for forwarded arguments
- Y'all understand this way more than I do, can you comment on whether my analysis [here](https://github.com/rails/rail...
- 08:48 AM Ruby master Bug #18011: `Method#parameters` is incorrect for forwarded arguments
- jeremyevans0 (Jeremy Evans) wrote in #note-4:
> Note that from a caller's perspective, `[[:rest, :*]]` and `[[:rest,... - 07:10 AM Ruby master Bug #18021 (Closed): Mixins in Refinements: possibly multiple bugs, workarounds are awkward
- ## Maybe bug 1
Refinements must be created after methods are defined.
```ruby
# This one seems buggy
module M...
06/29/2021
- 06:09 AM Ruby master Bug #18011: `Method#parameters` is incorrect for forwarded arguments
- jeremyevans0 (Jeremy Evans) wrote in #note-1:
> Forwarded arguments is implemented as `(*args, &block)` with `ruby2_... - 01:02 AM Ruby master Bug #18011 (Closed): `Method#parameters` is incorrect for forwarded arguments
- When asking a method about its parameters, forwarded arguments say they are a rest and a block (`wrapper1` in the exa...
02/21/2021
- 05:34 PM Ruby master Bug #17649: `defined?` invokes method once for each syntactic element around it
- The reason seems to be because the generated iseq doesn't cache the intermediate calculations:
```sh
$ ruby -e 'p... - 04:13 PM Ruby master Bug #17649: `defined?` invokes method once for each syntactic element around it
- I should have clarified my expectation: On the ones that call `defined?` I expected the number of calls to be 1 less ...
- 03:51 AM Ruby master Bug #17649 (Closed): `defined?` invokes method once for each syntactic element around it
- Honestly, I was surprised `defined?` works with expressions at all. I wouldn't object to this feature being removed, ...
- 03:26 AM Ruby master Bug #17619: if false foo=42; end creates a foo local variable set to nil
- It's intentional. Eg what if you set the same variable in both branches? Then it would be clearer that you are expect...
04/03/2020
- 08:44 PM Ruby master Bug #14413: `-n` and `-p` flags break when stdout is closed
- For anyone curious, these are the examples I went with instead: https://twitter.com/josh_cheek/status/124617522621340...
Also available in: Atom