-
Notifications
You must be signed in to change notification settings - Fork 2k
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
To s or not to s, that is the question #14372
Comments
For the most part, it looks like ProposalI'd say no
|
Another ProposalPrefer consistency. One exception though: If only one can be registered (e.g. (And obviously add aliases for the old names.) |
My issue with that is that |
If you want everything to be grammatical I think you'd need to change the scheme entirely and use Not my circus not my monkeys, I just came here as the maintainer of |
it makes grammatical sense if you read the "on_generated" part in the quotative sense, as in "the registered 'on_generated' callbacks", similar to how "there are two 'the's in the sentence 'the man went in the house'" is grammatical even though 'the' isn't a noun and can't be plural. that said, i'm not in favor of changing the status quo - other than documenting what's already there - because it'll mostly be a headache for mod maintainers with very little practical use except for not annoying pedants. of the two existing proposals, i prefer Desour's. |
I agree with fluxionary that it doesn't make much sense to rename all these tables just to have consistent "s". We'll have to keep the old names anyway for backwards compatibility, and then we'll have two names for the same thing, with the only difference being an "s" at the end. |
Summary
I ran across this while working on BuckarooBanzay/luacheck#1.
Our docs say
But our code does
minetest/builtin/game/register.lua
Lines 530 to 563 in 4843890
(the attentive reader may have spotted a subtle difference: some of our
registered_*
tables have ans
suffix, likeregistered_on_placenodes
, while others do not, likeregistered_on_priv_grant
; there seems to be no consistent rule being followed here)Steps to reproduce
Access
minetest.registered_*s
vsminetest.registered_*
, or just 👁️ 👄 👁️What we can do
s
tables without thes
to match what the docs say.s
tables.(or the other way around)
Other suggestions?
The text was updated successfully, but these errors were encountered: