C
C#2mo ago
KITAI✨

✅ How do I understand static typing

I am a bit confused about the difference between static and dynamic types when learning variable types
9 Replies
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
KITAI✨
KITAI✨2mo ago
So if I want to change the static type of a variable, do I need to refactor it?
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Kao
Kao2mo ago
To make it simple, if you declare a variable as a string you will never be able to put something else than a string in it.
KITAI✨
KITAI✨2mo ago
Oh, I see, thanks for the explanation
sibber
sibber2mo ago
$close
MODiX
MODiX2mo ago
If you have no further questions, please use /close to mark the forum thread as answered
Petris
Petris2mo ago
I mean both C# and TS while being mainly about static typing, have dynamic typing too
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View