-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 code style for cross-language scripting examples #8195
Conversation
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.
Thanks for updating this page 🙏
939aaf3
to
9f0c985
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.
This is still waiting for a merge 🙏 |
9f0c985
to
e16be0a
Compare
Thanks for the review! While checking my changes, I noticed that C# lines casting arrays to |
Ooh, good spot! Yes, that warning block is no longer relevant. |
* Replaced "foo"/"bar" example values with "my value". * Changed C# public field to property and GDScript to match. * Used PascalCase for C# property. * Used camelCase for C# local variable. * Used "var" for C# local variable declarations. * Used PascalCase for GDScript class/script variable. * Improved clarity of comments documenting expected output. * Eliminated horizontal scroll in C# code example. * Fixed a comma splice in the page text. * Removed an out-of-date warning block.
e16be0a
to
aa223c3
Compare
Thanks! Fixed. |
Thank you! Merged. Finally. :) Oof, this took a while, apologies, somehow this PR slipped through. In the future, feel free to ping us if nothing moves for weeks. |
Cherrypicked to 4.3 in #10347. |
Updated C# and GDScript code examples in the cross-language scripting docs, to (hopefully) improve clarity and better match the respective code styles.
Specifically: