Real problems with functional languages

Real problems with functional languages

Real problems with functional languages

And their influence on Dark

After two decades of coding professionally in a dozen languages, I’ve come to a conclusion about static and dynamic types:
Static types help you ensure that your changes work, especially for changes that span large parts of the program. Here’s an example of some simple Python code that will throw an exception if aor bare strings which are not valid ints:
sum = int(a) + int(b);FPs commonly use a Result type instead of exceptions (or C/Go error codes). Type checking in Dark
In most FP compilers, your whole program either compiles or it doesn’t, making it difficult to make small scale changes.

Source: medium.com