4 ms·
Javascript / Nodejs it's multi-paradigm: scripting, object-oriented (prototype-based), imperative, functional ( source: https://en.wikipedia.org/wiki/JavaScrip
by frik 11y ago
Javascript / Nodejs
it's multi-paradigm: scripting, object-oriented (prototype-based), imperative, functional ( source: https://en.wikipedia.org/wiki/JavaScript https://en.wikipedia.org/wiki/JavaScript )
Many languages known as functional (Scala, F#, Lisp, Scheme, OCaml) are multi-paradigm languages (check out Wikipedia!), purely functional programming language like Haskell are the exception (https://en.wikipedia.org/wiki/Purely_functional https://en.wikipedia.org/wiki/Purely_functional ). And the IO part is hardly functional.
@Down voter: care to explain?
- willtim 11y agoNo IO in Haskell is purely functional. Your Haskell program wires up a computation that is eventually run by the runtime. The wiring up, as described in Haskell, supports referential transparency and composition as only pure code can. Your confusion may arise from people using the term "pure" to differentiate from "monadic".
- frik 11y agoAll I meant is IO (aka input/output) can have side effects outside of the scope of the language environment. Haskell has the IO type to encoding those this side effects: https://wiki.haskell.org/Introduction_to_IO https://wiki.haskell.org/Introduction_to_IO
- codygman 11y agoI haven't decided yet, check out this link to decide for yourself: https://leanpub.com/purescript/read#leanpub-auto-the-eff-monad https://leanpub.com/purescript/read#leanpub-auto-the-eff-mon...
- devbug 11y agoAll I can think is... Poe's Law. https://www.youtube.com/watch?v=ztVMib1T4T4 https://www.youtube.com/watch?v=ztVMib1T4T4