-
-
Notifications
You must be signed in to change notification settings - Fork 223
Rename: OnEditor invalid
to sentinel
#1079
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
Conversation
Thanks! As mentioned in #1051 (review), "invalid" is not yet the final name -- we should probably decide on one and then adapt it everywhere. Maybe we can use this PR for some suggestions 🤔 Some ideas I had a while ago:
My personal favorites: #[init(sentinel = 7)] // 'sentinel value' is a semi-known term
OnEditor::uninit_sentinel(7) // naming? #[init(unless = 7)] // consider initialized, unless it's 7
OnEditor::init_unless(7) It doesn't seem like there's a simple enough term that makes the semantics 100% clear, so reading docs will be necessary anyway. That considered, distinction from other well-known concepts ("uninit" like |
Sentinel looks pretty cool. As a non-native English speaker, I prefer some simple words like |
I think Personally I would go with |
In
So Regarding this pull request, what about #[init(sentinel = 7)]
OnEditor::from_sentinel(7) |
rename invalid to sentinel `new_invalid` to `from_sentinel`
API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-1079 |
Thanks a lot, and congrats to your first merged PR! 😊 |
#[init(invalid= val)]
->#[init(sentinel = val)]
OnEditor::new_invalid(val)
->OnEditor::from_sentinel(val)