Skip to content
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

Deprecate measure block usage #602

Closed
wants to merge 2 commits into from
Closed

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Jun 10, 2023

  1. Add custom command definition for irb_measure
  2. Deprecate measure command's block usage

This will officially remove the need to pass block to command's execute
method, which will make future command refactoring a lot easier.

1. Add custom command definition for `irb_measure`
2. Deprecate `measure` command's block usage

This will officially remove the need to pass block to command's `execute`
method, which will make future command refactoring a lot easier.
@st0012 st0012 requested a review from a team June 10, 2023 13:48
@st0012 st0012 added enhancement New feature or request Don't merge labels Jun 10, 2023
::IRB::ExtendCommand::Measure.execute(irb_context, type, arg)
end
end
], nil, __FILE__, line
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is not pretty, but this is the only way I can think of to make command refactoring easy while not introducing a n immediate breaking change.

@st0012
Copy link
Member Author

st0012 commented Aug 11, 2023

I think #624 is a better way of handling measure, so closing this now.

@st0012 st0012 closed this Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Don't merge enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

1 participant