<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I posted this on Apple’s developer forums, and someone suggested trying this here.<div class="">Basically, see&nbsp;<a href="https://forums.developer.apple.com/thread/80349" class="">https://forums.developer.apple.com/thread/80349</a></div><div class=""><br class=""></div><div class="">but in a nutshell: consider that a widely used class/struct (such as CGPoint) is missing some “obvious” functionality [don’t debate that part, just go with it for now], such as the ability to scale a point by a scalar using * as an operator: so in my awesome library “GeometryBase” I write</div><div class=""><br class=""></div><div class="">&nbsp; public func * (left: CGPoint, right: double) -&gt; CGPoint {</div>&nbsp; &nbsp; &nbsp; return CGPoint(x: right*left.x, y: right*left.y)<br class="">&nbsp; }<div class=""><br class=""></div><div class="">Why public? &nbsp;Well, of course, because I want to use library GeometryBase in many apps or other libraries, and now this overload exists in only one place.</div><div class=""><br class=""></div><div class="">But other bright people have the same idea, and now I want to use their libraries. &nbsp;(some of them in my company, some of them not.)</div><div class=""><br class=""></div><div class="">And now we’re stuck, because everyone is trying to make up for the same (perceived) lack and everyone wants them public so that they don’t have to keep sticking them in each library they write.</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">Anybody got some good ideas what to do about this?</div><div class=""><br class=""></div><div class="">[Same question could apply to adding extensions.]</div><div class=""><br class=""></div></body></html>