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

codegen: when passing parameter no need to create a copy (if not mutating) #106

Open
delasy opened this issue Oct 8, 2024 · 0 comments
Open
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@delasy
Copy link
Member

delasy commented Oct 8, 2024

fn test (a: str) {}

a := "test"
test(a) // shouldn't create copy here
@delasy delasy added the enhancement New feature or request label Oct 8, 2024
@delasy delasy self-assigned this Oct 8, 2024
@delasy delasy added this to the v1.0 milestone Oct 8, 2024
@delasy delasy changed the title when passing variable to a function no need to create a copy if parameter is not mutating codegen: when passing parameter no need to create a copy (if not mutating) Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant