-
Notifications
You must be signed in to change notification settings - Fork 16
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
Implement Pathname#chdir #33
base: master
Are you sure you want to change the base?
Conversation
ext/pathname/pathname.c
Outdated
{ | ||
VALUE args[1]; | ||
|
||
if(rb_block_given_p()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very Minor: is the if (
the style used in other conditionals in this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, indeed! Thank you for noticing.
01fc436
to
de4c140
Compare
|
@toy Interesting. Do you know the justification? (The obsoleting commit doesn't link to the tracker ticket or ruby-core email discussion) 🤔 |
@zverok I remember being frustrated about the change and that justification was something about the method being misplaced, but I failed now to find any more information about it |
@hsbt That one is about removal of methods already marked obsolete, but not why were they marked obsolete |
@hsbt Any updates on this?.. It is a bit weird now that (more simple) |
see #25 (comment) |
As it was introduced into Ruby 3.3 as
Dir#chdir
, and was requested before that in #25.