SwiftUtils package

Have been working a small experiment "yet another swift utility package :sweat_smile:" for some time now and I thought I should announce it here

About
Provides some useful constructs that I feel like imho that swift currently lacks such as Variant or Union here

Not to bore you with too much details. Here is
SwiftUtils :tada::tada::tada:

1 Like

A variant type is definitely useful, but looking at the code I don't understand why it's littered with @_transparent and @_alwaysEmitIntoClient. I thought AEIC was exclusively for the standard library where it's built into the OS on Apple platforms and you don't have the source code when you use it, not for public packages where you have to download and compile it yourself anyways. And @_transparent feels semantically wrong due to the way it alters the call stack in debug mode; @inlinable I could understand, but I don't get @_transparent.

Also, how are you using the Builtin module?

Was hoping it would gain much traction so I could make an evolution proposal for it. Builtin module is needed for some things the package provides