5 ms·
As a long time lover of functional programming, and have not used C++ professionally since the 90s, this whole article feels sort of damning about the future of
by SomeHacker44 8y ago
As a long time lover of functional programming, and have not used C++ professionally since the 90s, this whole article feels sort of damning about the future of the language from a functional perspective.
The calculation of Pythagorean Triples is literally one line in Haskell (a language I have used for almost three decades), as a simple list comprehension. It also can then be consumed or used in any fashion, and is calculated lazily.
While I am not particularly adept at other "functional" languages, I would imagine similar brevity in F#, OCaml and possibly even Python (which I believe has some sort of list comprehension syntax).