Skip to content

feat[lang]: add raw_return() builtin#4527

Closed
charles-cooper wants to merge 5 commits intovyperlang:masterfrom
charles-cooper:feat/raw_return
Closed

feat[lang]: add raw_return() builtin#4527
charles-cooper wants to merge 5 commits intovyperlang:masterfrom
charles-cooper:feat/raw_return

Conversation

@charles-cooper
Copy link
Copy Markdown
Member

@charles-cooper charles-cooper commented Mar 17, 2025

raw_return() makes it easier to build proxy contracts in vyper.

implements #4525

What I did

How I did it

How to verify it

Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

`raw_return()` makes it easier to build proxy contracts in vyper.
rename existing file
@charles-cooper charles-cooper marked this pull request as ready for review March 17, 2025 13:24
@charles-cooper
Copy link
Copy Markdown
Member Author

closing. this feature breaks an important feature of vyper, which is that you can predict control flow by inspecting top level functions. with raw_return(), you can commit state and successfully exit control flow inside of an internal function which is not visible from the top level function.

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.

1 participant