You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The term "typechecks" is confusingly used as an adjective #96130
Arguably to new eyes, you can mistaken "typecheck" to be a verb meaning "to do type checking". I understand this term came from the C function TypeCheck that returns a boolean.
The static type checker will treat the new type as if it were a subclass of the original type. This is useful in helping catch logical errors:
defget_user_name(user_id: UserId) ->str:
...
# typechecksuser_a=get_user_name(UserId(42351))
# does not typecheck; an int is not a UserIduser_b=get_user_name(-1)
The last two line may mean, the type checker skips checking this line.
Documentation
Arguably to new eyes, you can mistaken "typecheck" to be a verb meaning "to do type checking". I understand this term came from the C function TypeCheck that returns a boolean.