4 ms·
Is the functional paradigm still considered something most people still haven't learned in 2021?
by toastal 5y ago
Is the functional paradigm still considered something most people still haven't learned in 2021?
- masklinn 5y agoYes? Most people might have experience with functional-ish features like HoFs and lambdas in imperative langages but Elixir, through Erlang, is much more of the package: immutable structures and bindings, expressions-oriented, patterns, limited support for iteration. It’s not pure or anything, but it’s closer to OCaml than it is C# or Javascript. “I’ve used Array#map” doesn’t mean you know functional programming.
- princevegeta89 5y agoYes sir. People would have fun doing .entryList() or map.each do {} end which seems trivial but however with something as functional as Elixir, we can only achieve this with the Enum module for example. There is no iteration but only a bunch of methods from which to choose based on your requirement