godotengine / godotengine/godot-docs
Incorrect/misleading explanation of duck typing and dynamic typing in the static typing page.
- Dominant language
- reStructuredText
- Stars
- 5.7k
- Forks
- 3.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 25
Description
**Your Godot version:**
4.1.1 stable
doc page is up to date with Godot 4.1
**Issue description:**
> GDScript supports [duck-typing](https://stackoverflow.com/a/4205163/8125343), 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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.