Skip to content

New rets #6

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

Merged
merged 5 commits into from
Mar 8, 2024
Merged

New rets #6

merged 5 commits into from
Mar 8, 2024

Conversation

SlidyBat
Copy link
Owner

@SlidyBat SlidyBat commented Mar 8, 2024

No description provided.

They are no longer expressions, which means they don't return a value. This also removes the need for the store instruction to push the result of the store, removing lots of useless pops.
Variable declarations are now `x : type = init` or `x := init` to deduce type from init.
Function declarations are now `def f(x : type) -> ret:`. Return type can be omitted to deduce type from code.
This declaration style more closely matches python.
Not sure what I was thinking when I added this. It's not used anywhere, and a negative number can be used in `stack` for same effect.
@SlidyBat SlidyBat merged commit 6399e37 into master Mar 8, 2024
1 check failed
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