Incorrect/misleading explanation of duck typing and dynamic typing in the static typing page.

Open Beginner friendly
#7,763 0 comments 0 reactions 0 assignees View on GitHub

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

area:manual bug

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from godotengine/godot-docs

All issues in godotengine/godot-docs

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.