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

refactor(Inspector): Add CreateOutcome in create/create_end return #980

Merged
merged 57 commits into from
Jan 17, 2024

Conversation

loocapro
Copy link
Contributor

@loocapro loocapro commented Jan 15, 2024

Related to #873

I worked on top of external_field branch as asked by @rakita.

I defined a CreateOutcome struct and defined some helper methods to encapsulate some logic.

It's a first draft, @mattsse may I get some feedback please?

@loocapro loocapro changed the base branch from main to external_field January 15, 2024 13:54
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

I like the wrapper type a lot, though I think the additional functions are not that useful

wdyt @rakita

crates/interpreter/src/interpreter.rs Outdated Show resolved Hide resolved
crates/interpreter/src/interpreter.rs Outdated Show resolved Hide resolved
crates/interpreter/src/interpreter.rs Outdated Show resolved Hide resolved
@loocapro
Copy link
Contributor Author

I like the wrapper type a lot, though I think the additional functions are not that useful

wdyt @rakita

Thanks for the feedback! I have followed your comments and have added a possible improvement over encapsulation of the InstructionResult structure.

What you guys think?

@loocapro loocapro requested a review from mattsse January 15, 2024 15:08
Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

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

two nits left.

Do you want to do similar thing for CallOutcome? It can be in this PR or the next one

@loocapro
Copy link
Contributor Author

two nits left.

Do you want to do similar thing for CallOutcome? It can be in this PR or the next one

Sure, i am gonna do in a new pr!

@loocapro loocapro marked this pull request as ready for review January 16, 2024 15:59
@loocapro loocapro requested a review from rakita January 16, 2024 15:59
@rakita
Copy link
Member

rakita commented Jan 17, 2024

Hey @loocapro, can you rebase these changed to main, external_field branch is merged to it?

@loocapro loocapro changed the base branch from external_field to main January 17, 2024 11:11
Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

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

lgtm

@rakita rakita merged commit 0629883 into bluealloy:main Jan 17, 2024
25 checks passed
@rakita rakita changed the title Improve/inspector create refactor(Inspector): Add CreateOutcome in create/create_end return Jan 17, 2024
@github-actions github-actions bot mentioned this pull request Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants