MENU

Fun & Interesting

Godot's GDScript for Programmers: Static Types & Memory Safety

Context Free 3,818 lượt xem 1 year ago
Video Not Working? Fix It Now

Code: https://github.com/contextfreecode/gdpy

0:00 Intro
0:29 Why GDScript
0:52 Exploring in VSCode
1:26 Script as a class
1:53 Python equivalent
2:21 Type checking in Mypy & GDScript
3:33 Declarations in Python vs GDScript
4:28 GDScript Variant type vs nullable objects
5:04 Script class cache
5:38 Reference counting and cycles
6:52 Python cycle collection
8:08 GScript manual memory management
9:50 Python memory unsafety
10:44 GDScript typed collections or not
11:51 Dynamically checked type safety
12:33 No type parameters on dictionaries
13:14 Closing thoughts

Comment