[RFC] structs with defaults #2222
aleksanderkatan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Use case: some libraries might want to export functions with default parameters, a struct with default properties might be used to achieve this.
Example API:
Beta Was this translation helpful? Give feedback.
All reactions