Re:Swift and the Legacy of Functional Programming
by Waterluvian on Monday November 21, 2016 @12:10PM
(#13006981)
I always thought FP == pure functions. I guess not?
[ Parent
| on HN ]
Re:Swift and the Legacy of Functional Programming
by _mhr_ on Monday November 21, 2016 @12:21PM
(#13007065)
I would call a language like Haskell "purely functional" and a language like OCaml "impurely functional". A functional programming language to me is a programming language where functions are in charge of data. In a language like Java, data is in charge of functions (broadly speaking). In a language like Prolog, relations are in charge of data. It's all about what perspective the programmer has between the abstraction and the data.