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

Does code_builder support a notion of target language version? #378

Open
yanok opened this issue Sep 30, 2022 · 0 comments
Open

Does code_builder support a notion of target language version? #378

yanok opened this issue Sep 30, 2022 · 0 comments

Comments

@yanok
Copy link
Contributor

yanok commented Sep 30, 2022

Or is it completely up to the user to make sure to only use the supported constructs?

Sometimes (the particular case I'm having at hand is required named arguments) it's possible to handle unsupported constructs gracefully, so for example if a required named argument were requested via builder, the library can generate an actual required arg if version >=2.12 is requested, and just drop the required otherwise.

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

1 participant