|
|
|
|
|
by mrtracy
955 days ago
|
|
I recently learned that Godot forbids auto in its core C++ codebase, their rationale was based on code review: > Keep in mind hover documentation often isn't readily available for pull request reviewers. Most of the time, reviewers will use GitHub's online viewer to review pull requests. `using` directives and typedefs are not forbidden, so this would avoid situations where a type is never explicitly declared. Having worked in large code bases that used `auto` almost exclusively when possible… I’m not sure I agree. However, I understand. https://docs.Godotengine.org/en/stable/contributing/developm... |
|