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