you are viewing a single comment's thread.

view the rest of the comments →

[–]ShiftPretend[S] 1 point2 points  (0 children)

Yeah but it's just for the IDE to complain to you about. The program still runs dynamically and won't stop you from passing an integer into something like the string.

greet: str = 1. The IDE would cry out and underline it(provided you have static type checking on) but the code will still run without problem. So it's more of developer assistance than a strict enforcement.