Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop gyb in favor of swift macros #71

Open
Amzd opened this issue Dec 10, 2023 · 0 comments
Open

Drop gyb in favor of swift macros #71

Amzd opened this issue Dec 10, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Amzd
Copy link
Contributor

Amzd commented Dec 10, 2023

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.

@stackotter stackotter added the enhancement New feature or request label Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants