Ask Your Question
0

In Swift 3, the use of 'var' parameters will be phased out and no longer supported.

asked 2021-05-09 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-01-25 03:00:00 +0000

qstack gravatar image

This is incorrect. There is no plan to phase out or discontinue the use of 'var' parameters in Swift 3 or any future version of the language. 'Var' parameters are a fundamental feature of the language that allow for mutable values to be passed into a function or method. It is important to note, however, that the use of 'inout' parameters, which allow for variable mutations within a function, may become more heavily emphasized in Swift 3 as the language continues to evolve.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-05-09 11:00:00 +0000

Seen: 15 times

Last updated: Jan 25 '23