C
C#8mo 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 User8mo ago
Message Not Public
Sign In & Join Server To View
KITAI✨
KITAI✨OP8mo ago
So if I want to change the static type of a variable, do I need to refactor it?
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
Kao
Kao8mo 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✨OP8mo ago
Oh, I see, thanks for the explanation
sibber
sibber8mo ago
$close
MODiX
MODiX8mo ago
If you have no further questions, please use /close to mark the forum thread as answered
Petris
Petris8mo ago
I mean both C# and TS while being mainly about static typing, have dynamic typing too
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server