New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove :rasgn
and :mrasgn
types.
#150
Conversation
@eregon Test runs hang on |
It's possible to specify a timeout for GitHub Actions: I'll try to reproduce. It seems to only affect |
It gets stuck in TruffleRuby recently updated to 2.7, but didn't port that fix yet. |
This is quite involved because I had to finish writing a spec for Range#minmax, synchronize specs across implementations and then actually fix it in TruffleRuby. |
BTW, is there any reason not to simply use |
Thanks for the investigation!
I don't remember, and it looks like all the arity ranges are inclusive, so maybe not. Still, I'd rather write things properly; also I should probably be using refinements here. Does
Agreed, it's also not the best in general. I think I can use a different check like |
Fixed in oracle/truffleruby@df78798, thanks for the ping.
Exclusive ranges wouldn't work anyway, 2.7.2:
It does. But implementation-wise, that's a proper nightmare (need to cache globally per execution context & per refinements), I'd recommend having an explicit block. (actually TruffleRuby has an inline cache for it now, but still a global cache in the case the Symbol wasn't always the same, that's the part that's unpretty about this construct). |
Right. For
Ok. Since TruffleRuby is fixed now, I could use a conditional refinement here to support MRI <= 2.6. Should be nicer. |
See whitequark/parser#739