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

Encapsulate input details in Statement objects #682

Merged
merged 2 commits into from Aug 16, 2023
Merged

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Aug 14, 2023

After #575 is merged, a single input can be handled differently under different context. And if we still pass them around as plain text, we always need to parse them whenever we need to perform a check (e.g. if it's a command). It also means the input processing flow is filled with regexp that could be hard to interpret over time.

@st0012 st0012 self-assigned this Aug 14, 2023
@st0012 st0012 requested a review from tompng August 14, 2023 08:54
@st0012 st0012 merged commit 65e8e68 into master Aug 16, 2023
47 checks passed
@st0012 st0012 deleted the introduce-statement branch August 16, 2023 10:13
matzbot pushed a commit to ruby/ruby that referenced this pull request Aug 16, 2023
(ruby/irb#682)

* Introduce Statement class

* Split Statement class for better clarity

ruby/irb@65e8e68690
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants