3 ms·
Funny enough GDScript, the internal scripting language of the Godot engine, is using a similar form for (optional) type declarations. var damage: float = 1
by cardanome 6y ago
Funny enough GDScript, the internal scripting language of the Godot engine, is using a similar form for (optional) type declarations.
var damage: float = 10.5
var damage := 10.5
var dynamic_typed_damage = 10.5
If you use the colon you get a static typing, without it you get dynamic typing.
https://docs.godotengine.org/en/stable/getting_started/scripting/gdscript/static_typing.html https://docs.godotengine.org/en/stable/getting_started/scrip...
- thechao 6y agoThat's nice! Is is gradually typed or just untyped?