Skip to content

Drop gyb in favor of swift macros #71

Open
@Amzd

Description

@Amzd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions