swift-cross-ui icon indicating copy to clipboard operation
swift-cross-ui copied to clipboard

Drop gyb in favor of swift macros

Open Amzd opened this issue 1 year ago • 0 comments
trafficstars

We can use swift macros to generate the code that's currently generated by gyb.

Pros

  • Code completion and type checking on types that will get generated (rn they are gyb files which get nothing)
  • No extra step to run when editing types that have generation step, just swift build.
  • No dependency on gyb

Cons

  • Requires Swift 5.9 so we will have to up the requirement from currently 5.5

Should be fun project for anyone with decent knowledge of Swift who wants to learn about macros.

Amzd avatar Dec 10 '23 00:12 Amzd