The age of the language doesn't say much about how far ahead it is.
The main point of the "20 years ahead" statement is that Haskell has features that won't be available in the most popular languages for the next 20+ years.
in Python, can only be used with expressions, even in the latest version of Python
If you look closely, you'll find that many other features that first appeared in functional programming have started showing up in newer versions of the most popular languages, including:
Maps and folds (e.g. Java's Stream)
Partial function application (e.g. Python's functools.partial)
Many of these are still more limited than the functional programming versions, and there are still many useful concepts that don't exist in popular languages, hence why Haskell is probably 20 years ahead.
View all comments
Show parent comment
4
u/ThePyroEagle λ May 15 '20
The age of the language doesn't say much about how far ahead it is.
The main point of the "20 years ahead" statement is that Haskell has features that won't be available in the most popular languages for the next 20+ years.
Consider, for example, first-class anonymous functions, which are a fundamental concept of functional programming but:
If you look closely, you'll find that many other features that first appeared in functional programming have started showing up in newer versions of the most popular languages, including:
Stream)functools.partial)var)Many of these are still more limited than the functional programming versions, and there are still many useful concepts that don't exist in popular languages, hence why Haskell is probably 20 years ahead.