azure-functions-swift icon indicating copy to clipboard operation
azure-functions-swift copied to clipboard

attribute using property wrappers

Open helje5 opened this issue 5 years ago • 1 comments

Unlike C#, Swift does not support Attributes to mark bindings types and directions

You should be able to use the new property wrappers in Swift 5.1 to annotate things.

helje5 avatar Dec 27 '19 22:12 helje5

Yes I've been experimenting with property wrappers. At the time of the initial development of the worker I used Swift 5.0. Also I've been testing backward compatibility. I think it'll be great to implement property wrappers in the worker, but since it's only in 5.1 and above, I think it'll be good to wait a bit to have more versions supported. But thank you for pointing this out, I'm updating the docs to make it clearer :)

SalehAlbuga avatar Dec 27 '19 23:12 SalehAlbuga