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

Define what happens when a list is passed into a function #18

Open
StealthHydra179 opened this issue Oct 22, 2023 · 1 comment
Open

Comments

@StealthHydra179
Copy link
Contributor

Unless I missed it, it isn't defined what happens when a list is passed into a function. From Burlap I infer that a copy is made and not a reference to the list, but it may be beneficial to specify in the specification.

@Bigjango13
Copy link
Contributor

I think for all values a copy is made (or at least, that's how burlap does it). A reference would be a good idea, although seems weird to have it just for lists (along with being a possible footgun if it's implicit). Maybe new syntax (like &foo) could be added? But I don't think Nobody would like it.

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

No branches or pull requests

2 participants