-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Display BitField[Enum]
in docs to distinguish from Enum
#74641
Display BitField[Enum]
in docs to distinguish from Enum
#74641
Conversation
Looks fairly good to me, though I'm a bit concerned about introducing the For example, how would users know which type is actually returned by |
Now it is plain
Yes, I'm a little worried about this too, so I used a different color (same as |
76a0648
to
4e5852f
Compare
It might look a bit heavy, but I wonder if we shouldn't still specify Like Either option makes it a pretty long type hint and might lead to awkward formatting in the docs, but it might still be worth it to be explicit. |
4e5852f
to
68ea7b5
Compare
Personally, I like As for possible confusion, I think it is a temporary problem when learning the engine, and cluttered documentation is inconvenient for all users. It seems to me that a visual difference and a clear tooltip will be enough. But this is more a matter of personal preference, I do not insist. Let's see if there are other opinions on this. |
68ea7b5
to
aa8ab24
Compare
160c994
to
469698b
Compare
469698b
to
17783f3
Compare
17783f3
to
6cafd8a
Compare
6cafd8a
to
7762a79
Compare
7762a79
to
50b9bdb
Compare
BitField<T>
is usedBitField[Enum]
in docs to distinguish from Enum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me. I think the current style isn't too bad – we may have to iterate on it later, but it needs testing in real world conditions first 🙂
f197062
to
7512a76
Compare
Rebased. Fixed bug with using Line 709 in 28cca66
Lines 49 to 52 in 28cca66
Is there any reason why some
|
2fd22bc
to
c10a3d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Needs a rebase.
c10a3d6
to
eb391d3
Compare
Moved to |
Thanks! |
TreatFixed by GDScript: Misc fixes and improvements for signature generation #75691.BitField<T>
as anint
rather than an enumT
in GDScript.BitField[T]
.I highlighted the
BitField
with a different color and added a hint, sinceBitField
is not a type in GDScript.