Search
Star
1.4k
Feedback
Setup for Free
M
Modular
•
15mo ago
•
4 replies
Samuel Ibarra
What is the difference between fn(inout v: T) and fn(ref v: T) ?
Both work the same if the Origin is inferred for
ref
ref
? What are the differences
?
Modular
Join
This server is the home of the MAX and Mojo community! Join us to chat about all things Modular.
20,311
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
ref
ref
Similar Threads
What is difference between `__init__(...) -> Self` vs `__init__(inout self, ...)`?
M
Modular / questions
3y ago
What does the asterisk in this mojo code mean? fn __init__(inout self, *, capacity: Int):
M
Modular / questions
2y ago
Difference between Float32 and DType.float32
M
Modular / questions
3y ago
Why doesn't fn() coerce to fn() capturing
M
Modular / questions
3y ago