[Accepted] SE-0293: Extend Property Wrappers to Function and Closure Parameters

The third review of SE-0293 has concluded. Feedback in the third round of review was quite positive, a result of the great iteration from the previous rounds of proposal. As such, the core team has accepted the proposal as written.

Thank you to the proposal authors and to the community for the discussion and iteration, and for helping make Swift a better language!

Chris Lattner
Review Manager


Does the acceptance of proposal imply that we will get the ability to apply property wrappers onto constants?

let constant = 42

The proposal enforces a similar behavior with function parameters where the backing storage is a constant and the synthesized computed variables are read only.

No; the only additional capabilities of property wrappers gained with the acceptance of this proposal are the capabilities specified in the proposal.

I do think it would be useful to have a way to declare that the backing storage is immutable for a wrapped property or local variable, but that will need to be a separate proposal.


That however is exactly what I was asking, sorry if you got the impression that I was asking as if we get it now, that was some bad wording.

Terms of Service

Privacy Policy

Cookie Policy