Spelling this as a typealias is a confusing and not generalizable. The general solution doesn’t require lots of thought and exploration before implementing. The pattern is well established by other languages (e.g. #pragma
in C/C++, {-# pragmas #-}
in Haskell) and equally applicable to Swift.
3 Likes