General

Profile

josh.cheek (Josh Cheek)

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... josh.cheek (Josh Cheek)
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,...
josh.cheek (Josh Cheek)
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...
josh.cheek (Josh Cheek)

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_...
josh.cheek (Josh Cheek)
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... josh.cheek (Josh Cheek)

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...
josh.cheek (Josh Cheek)
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 ... josh.cheek (Josh Cheek)
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, ... josh.cheek (Josh Cheek)
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... josh.cheek (Josh Cheek)

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... josh.cheek (Josh Cheek)

Also available in: Atom