why clojure, despite such emphasis on functional paradigm, not use maybe
/ option
monad represent optional values? use of option
quite pervasive in scala, functional programming language use regularly.
clojure not statically typed, doesn't need strict this/that/whatever type declarations necessary in haskell (and, gather, scala). if want return string, return string; if return nil instead, that's okay too.
"functional" not correspond "strict compile-time typing". orthogonal concepts, , clojure chooses dynamic typing. in fact, quite time couldn't imagine how implement many of higher-order functions map
, still preserve static typing. have little (very little) experience haskell, can see it's possible, , indeed quite elegant. suspect if play clojure while, have opposite experience: you'll realize type declarations aren't necessary give kind of power you're used having in functional language.
Comments
Post a Comment