Skip to content

Conversation

@0b1kn00b
Copy link

Using the type system to create automated constructors without substantially impacting the AST is possible, includes working code which demonstrates the approach.

@RblSb
Copy link
Member

RblSb commented Dec 20, 2024

I don't get what you want to add in this proposal. Can you provide inline examples with and without your feature to show benefits and explain what it does?

@0b1kn00b 0b1kn00b mentioned this pull request Dec 23, 2024
1 task
@0b1kn00b
Copy link
Author

If you order the AST by shortlex ordering, the compiler should be able to derive the grand majority of constructors with that information alone, I don't know if you've seen the macro di implementation but it's not super complex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants