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

Why getproperties and constructorof? #4

Open
aplavin opened this issue Jan 13, 2023 · 1 comment
Open

Why getproperties and constructorof? #4

aplavin opened this issue Jan 13, 2023 · 1 comment

Comments

@aplavin
Copy link

aplavin commented Jan 13, 2023

By default, @batteries generate explicit getproperties and constructorof definitions:

getproperties = true ,
constructorof = true ,

Those definitions look very similar to default ConstructionBase fallbacks. Why are they needed at all? Differ in some corner cases?

@jw3126
Copy link
Owner

jw3126 commented Jan 13, 2023

They are equivalent. The potential advantage they have is that they don't involve generated functions. Though I don't know a practical example, where that makes a difference.

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

No branches or pull requests

2 participants