-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
Improve documentation on cast and default #1039
Comments
Hey @q-wertz , option 1 is correct, cast is called for defaults. |
Not sure if I oversee something, but it looks like both solutions work in my case.
For me from "user" view it looks like both variants are equivalent 😅 |
Yeah, I guess they are equivalent because the casting function will usually bypass the value when called over an already casted value (like |
Currently it is not clear from the documentation when using
default
together withcast
, whethere.g.
It would be nice to have a hint in the docs :)
EDIT: Wrong default type in Variant 2 (typo)
The text was updated successfully, but these errors were encountered: