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

Blog nit #67

Open
dabrahams opened this issue Mar 17, 2024 · 0 comments
Open

Blog nit #67

dabrahams opened this issue Mar 17, 2024 · 0 comments

Comments

@dabrahams
Copy link

Sorry for abusing this issue tracker, but I don't know how else to reach you as I'm not on Twitter.

This nice article contains a link to Hylo on the words ”everything is a copy,” but that's not at all an accurate characterization. In Hylo, all copies are explicit and what we refer to (and write) as pass-by-value is functionally what a Rust programmer would think of as a pass-by-immutable reference. It's semantically equivalent to a pass-by-copy if the type is copyable, so you can think in terms of independent copies, but no actual copying happens unless you ask for it. In other words, the basic functional model is the same as Rust's; we just encourage a different mental model.

HTH

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

1 participant