NewsjunkieSign in
  • All items
  • Explore

Sign in to follow sources.

Swift Language15 Oct

@pointfreeco's series on advanced macro techniques wraps up with part 2: type inference. A great read for Swift macro authors. Check it out at

pointfree.co
Advanced macro technique #2: Type inference
The final advanced Swift macro technique we will discuss is how macros can determine the static type of an expression whose type must be inferred by the compiler. This is particularly useful for macros that need to build initializers or “builders” for users’ types.
mastodon.social ↗

Sign in to like, save or reply.