Re:A Preview of C# 8 [video]
by dep_b on Friday August 25, 2017 @12:10PM
(#15099532)
Swift extensions do not have the ability to add variables to the scope of the class they extend or into their own private scope. Perhaps because the compiler times would crash through the roof but I find it very limiting. I do use extensions in Swift but I prefer to factor out any code into it's own class once it needs to touch any kind of state.
[ Parent
| on HN ]
Re:A Preview of C# 8 [video]
by perfectstorm on Friday August 25, 2017 @06:41PM
(#15102844)
In Obj-C extensions you can add variables with the help of Obj-C runtime.