[swift-dev] Namespacing Compiler-Stdlib Interfaces

Dave Abrahams dabrahams at apple.com
Thu Dec 22 16:13:26 CST 2016


on Thu Dec 15 2016, Alexis <swift-dev-AT-swift.org> wrote:

> Triaging old radars, I came across rdar://27268632 <rdar://27268632>
> from Dmitri. The gist of it is that he was proposing grouping up all
> the random global functions that are implicitly called by the compiler
> under a “namespace” by making them static methods of an enum called
> _Intrinsic. (This name is kind’ve confusing, because it seems to be
> the opposite of the traditional notion of an intrinsic. _RuntimeHook?)
>
> Since this affects how the compiler interfaces with the standard
> library, I figured I should check with everyone what they think about
> doing this. This is an ABI stability issue, because future compilers
> will emit these symbols.
>
> I don’t really have a strong opinion on the matter. Avoiding global
> pollution and clarifying interfaces seems nice?

SGTM, though hardly urgent.


-- 
-Dave



More information about the swift-dev mailing list