Skip to content

Would var be a simpler replacement for the inout keyword? #105

Closed Locked Answered by lattner
sa- asked this question in Q&A
Discussion options

You must be logged in to vote

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?

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@sa-
Comment options

@nmsmith
Comment options

@lattner
Comment options

@scottamain
Comment options

@sa-
Comment options

Answer selected by sa-
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants