[swift-users] any wisdom about sharing "common" overloads/extensions in base libraries?
2th at gmx.de
Tue Jun 20 09:53:13 CDT 2017
> This is not a made up situation: many people even within one company trying to share code somewhat informally are going to write the same code to make using CGPoint/Size/Rect easier, and now we can’t share anything safely.
Well, have a look at what C++ did: Nothing ;-) — and therefore, the world is littered with incompatible, trivial definitions of vectors, images, notes…
My favourite example are quaternions (just do a search for that term in Apples own frameworks…), so there is definitely an issue here.
The solution is quite easy, but that makes things really complicated: Just declare a standard (that's easy — so everyone wants to have his own one ;-).
Unless someone with outstanding reputation (sadly, Apple seems not to care for this) starts a project like Boost, we'll have to live with incompatibilities.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-users