What is a statically typed language?

Asked

Viewed 685 times

1

After reading a statement that weakly typed languages were bad, I researched the subject, and eventually discovered the term "statically typed".

Here, in this SO question in English, it is said that:

Static (types are checked at Compile time)

(static (types are checked when compiling))

So a statically typed language can be considered a strong typing language? Because it won’t allow things like true == 1. Or I got it wrong?

  • I’m used to being a counterpoint to dynamic typing and duck typing. In the case of static typing, the programmer says that the variable represents an integer or an object of the type X. Very common in Java, how to use int i or String name. This in counterpoint of Python that you do not declare the type of the variable when creating it.

  • 2

    This question has exactly the answer I wanted, thank you @Mathias

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.