October 2023
Intermediate to advanced
384 pages
9h 12m
English
The preceding chapter may have left you somewhat distressed. Those things that I called objects were just hash maps and were completely untyped. Anybody could stick anything into them without any constraint. The salary in the :pay-class could hold a string instead of a number. The :schedule field could hold an integer instead of the appropriate keyword.
In short, these objects are not statically typed. The compiler does not check them. And therefore, all hell could break loose!
Many functional languages, as well as many OO languages, are statically typed in order to prevent that hell. Other languages, like Clojure, Python, and Ruby, ...
Read now
Unlock full access