-
It took me a few head scratches to figure out the purpose of I understand now that Let me know what you think! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
actually no. var means locally mutable, inout means mutations are visible in the caller. @scottamain is working on an improvement to the documentation here. Scott, can you share your thoughts when those go live? |
Beta Was this translation helpful? Give feedback.
-
Less keywords is a good thing, as long as they mean the exact same thing (unlike the C++ mess). |
Beta Was this translation helpful? Give feedback.
-
Some notes over Argument passing control and memory ownership, def/fn, etc Rename keyword
Another way is to describe all these nuances via sime kind of
Maybe keep only one keyword for a function
or like a typing:
|
Beta Was this translation helpful? Give feedback.
-
I'm closing this because we're not renaming the inout keyword right now. We will do a full repaint of the new keywords when the language matures. |
Beta Was this translation helpful? Give feedback.
actually no. var means locally mutable, inout means mutations are visible in the caller. @scottamain is working on an improvement to the documentation here. Scott, can you share your thoughts when those go live?