godotengine / godot-docs

Godot Engine official documentation
https://docs.godotengine.org
Other
3.94k stars 3.21k forks source link

inaccurate claim that c#/c++ devs tend to not use dictionaries #8435

Open ana-rchy opened 1 year ago

ana-rchy commented 1 year ago

Your Godot version: 4.1

Issue description: in the gdscript intro, theres this claim: "Most programmers that come from statically typed languages (such as C++ or C#) ignore their existence and make their life unnecessarily more difficult. This datatype is generally not present in such languages (or only in limited form)." it seems to imply that c#/c++ usually hinder themselves by not using dictionaries, even if its not the intention to do so. it also implies they have limited dictionary forms, which, idk for c++, but for c# theres definitely a full dictionary implementation i would suggest rephrasing the paragraph to not specifically point out c++ and c#, and not make the hindrance claim

URL to the documentation page (if already existing): https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_advanced.html

YuriSizov commented 1 year ago

I think the sentiment is generally fair, as in hash tables would be generally frowned upon if you could instead strictly type everything. But the language is unnecessarily hostile and should be rephrased.

rshouker commented 11 months ago

I think the sentiment is generally fair, as in hash tables would be generally frowned upon if you could instead strictly type everything. But the language is unnecessarily hostile and should be rephrased.

Dictionary standard classes in those languages are generic, meaning they are statically typed upon instanciation.