Skip to content

How to set a default for the entire struct, instead of for each field? #151

Closed Answered by Veetaha
rain2307 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! Thank you for opening a discussion. The short answer is that currently there is no syntax to set default at the top level. However, it's something that I'm planning to add in the next several releases. I've been thinking on the design of this feature trying to select the most intuitive behavior for this.

I've created an issue with the anticipated design for this. I'd be glad to hear any feedback about it: #152

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rain2307
Comment options

@Veetaha
Comment options

Answer selected by rain2307
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants