Incorrect/misleading explanation of duck typing and dynamic typing in the static typing page.
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Domain
- documentation
Research direction
Start with the static typing documentation page at docs.godotengine.org/en/stable/tutorials/scripting/gdscript/static_typing.html and review the quoted explanations of duck typing and dynamic typing. Correct the terminology so inheritance, duck typing, and dynamic typing are distinguished, then verify the rendered page reads accurately.
Written by the indexing model from the issue text.
Description
Your Godot version:
4.1.1 stable
doc page is up to date with Godot 4.1
Issue description:
GDScript supports duck-typing, so even if your timer is of type Timer, it is also a Node and an Object, two classes it extends.
That's not what duck typing is about, that's what inheritance does - it is the IS-A relationship.
https://en.wikipedia.org/wiki/Is-a
With dynamic GDScript, you also don't care about the node's type as long as it has the methods you need to call.
Now that is what duck typing (not the dynamic typing) is about.
URL to the documentation page:
https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/static_typing.html
- Dominant language
- reStructuredText
- Stars
- 5.7k
- Forks
- 3.8k
- Avg merge
- 7d 14h
- Merged PRs (30d)
- 41
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from godotengine/godot-docs
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
godotengine/godot-docs#12394 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
godotengine/godot-docs#12366 · 1 comment ·
-
area:class reference area:manual enhancement topic:2d topic:physics
Difficulty 1/5 1-3 hours Newbie friendliness 87/100
godotengine/godot-docs#12364 · 3 comments ·
-
bug content:website
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
godotengine/godot-docs#12360 · 1 comment ·
-
bug content:website
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
godotengine/godot-docs#12348 ·
All issues in godotengine/godot-docs
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Ecosystem: ClawMetry — the Qwen Code reader is now free and open source (follow-up to #9294 / #9338) Opencategory/integration priority/P3 scope/documentation status/ready-for-human type/feature-request
Difficulty 1/5 Under an hour Newbie friendliness 84/100