4 ms·
I think it would be even better if the repo had the javascript examples alongside another language which is more widely accepted as a functional language for ex
by bhrgunatha 10y ago
I think it would be even better if the repo had the javascript examples alongside another language which is more widely accepted as a functional language for example Haskell, Scala or Clojure.
Seeing examples together to me is an even stronger way of illustrating the concepts and differences between implementations.
- catnaroek 10y agoA more serious objection is that many structures used in functional programming have associated equational laws, which JavaScript provides a very poor medium to formulate - never mind actually prove. The ability to query the physical identity of every object makes the equational theory of JavaScript objects completely trivial: every object is equal to itself (physically in memory) and nothing else.