godotengine / godotengine/godot-docs

Naming Convention Flaw: Variable Names Clashing with Public Instance Methods/Vars in GDScript

Open
#9,576 0 comments 0 reactions 0 assignees View on GitHub
area:manual discussion enhancement
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

**Your Godot version:**
4.2.1

**Issue description:**
The recommended naming conventions for GDScript have a significant flaw where variable names and public instance methods/variables can have the same casing. This often leads to clashes where variable names unintentionally match existing public instance methods or variables.

**URL to the documentation page (if already existing):**
https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_styleguide.html#gdscript-style-guide

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.