Why do we need an entrypoint function?
To understand the importance of entrypoint functions in a programming language, it is essential to start with understanding their history and realize how their role has been transcendental for the development of programming languages as we know them today.
It is said that Ada Lovelace wrote one of the first programs written using a programming language, which was an algorithm for calculating the Bernoulli numbers and was written for execution by Charles Babbage's Analytical Engine.
The Analytical Engine represented one of the first instances in the development of machines that were programmable through instructions entered into the machine using input devices, laying the foundation for sequential and single-purpose programs to be developed over the next decade. These first programs had computational and scientific objectives, so their sequential nature did not mean real limitations.
The incursion of computing into business implied...