Re:Go’s alias proposal and all my concerns of Google control...
by Kubuxu on Monday November 07, 2016 @04:31AM
(#12889832)
The 'context' problem is an interesting one.
Application I am working on was creating over 5k additional goroutines for context handling because part was using context from mainlib and part was using /x/net/context. The lib has special optimization that would fail if you mixed both.
Re:Go’s alias proposal and all my concerns of Google control...
by sagichmal on Monday November 07, 2016 @02:20AM
(#12889454)
Yet there are existing solutions to the context issue, namely vendoring and versioning, that work well for OSS but don't work for Google.
The alias change could be useful in OSS, but it's certainly most useful in a monorepo.
Re:Go’s alias proposal and all my concerns of Google control...
by secure on Monday November 07, 2016 @03:48AM
(#12889690)
Vendoring still requires that _all your dependencies_ (even vendored) use _either_ “golang.org/x/net/context” _or_ “context”, hence I don’t quite see how that addresses the problem. Can you elaborate?
The author of the article doesn’t seem to mention or consider this point at all.