static programming language = square pegs in a round hole

Certain things simply do not match. And just like the saying „square pegs in a round hole„, in static programming language you cannot dynamically change the variable type as you go. For example, C++ is a statically-typed language, which means that the type of a variable is known at compile time, and once you’ve declared a variable of a certain type, you cannot change its type during its lifetime.

For instance, languages like Python are dynamically typed, meaning that the type of a variable can change at runtime. Statically typed is determined at the compile time.

WHY Is It Important?

  • Just being aware of the difference brings clarity to the way you are going to design your code.

NOWwhat?

  • You have just learned a dynamic-static typing micro skill.

Unravel, don’t tangle.

Napsat komentář

Vaše e-mailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *