C
C#11mo 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 User11mo ago
Message Not Public
Sign In & Join Server To View
KITAI✨
KITAI✨OP11mo ago
So if I want to change the static type of a variable, do I need to refactor it?
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
Kao
Kao11mo 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✨OP11mo ago
Oh, I see, thanks for the explanation
sibber
sibber11mo ago
$close
MODiX
MODiX11mo ago
If you have no further questions, please use /close to mark the forum thread as answered
Petris
Petris11mo ago
I mean both C# and TS while being mainly about static typing, have dynamic typing too
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?