5 ms·
Stopped reading it after the sentence "Erlang is not a functional programming language." edit: http://james-iry.blogspot.com/2009/05/erlang-is-not-functional.h
by pookleblinky 17y ago
Stopped reading it after the sentence "Erlang is not a functional programming language."
edit: http://james-iry.blogspot.com/2009/05/erlang-is-not-functional.html http://james-iry.blogspot.com/2009/05/erlang-is-not-function... and others seem to agree that "functional" is not the antonym of "practical/pragmatic/useful."
- silentbicycle 17y agoI think you misread his intent -- The point he's making is that Erlang grew organically into its current form by way of continual sculpting during use by its creators, rather than being refined to approach a theoretical ideal. You seem to think this he means this as a slam on functional programming, but I don't think that's the case. Going one further from the linked blog post, is OCaml functional? By Fischer's definition, yes, but I've written very non-functional (ha) code in OCaml. It's a multi-paradigm language, which happens to have very good support for functional programming, but it isn't limited to it. (I've also written very functional code in idiomatic Lua. Is Lua functional, then?) While functional programming techniques don't go against the flow of Erlang, saying it's functional is probably a bit of a stretch - its design doesn't prioritize this the way Haskell's does. (HN favors substantial comments over one-line reactions, btw. "I didn't bother reading this" doesn't add much to the discussion.)
- plinkplonk 17y ago"The point he's making is that Erlang grew organically into its current form by way of continual sculpting during use by its creators rather than being refined to approach a theoretical ideal" This might be an interesting language design methodology. Try to code up something hard (to introduce constraints) and assume you have to build a new langauge to do it. Iow ignore existing languages/libraries etc.
- silentbicycle 17y agoA lot of interesting mini-languages (e.g. make, regular expressions, and yacc) have formed that way.
- chops 17y agoThe point he's making is that Erlang grew organically into its current form by way of continual sculpting during use by its creators I've never really designed a serious language before, aren't almost all languages done this way?
- silentbicycle 17y agoHe's contrasting it to languages that are closely based on a mathematical ideal, such as Haskell (pure functional programming, category theory, etc.) or Prolog (Horn clauses and logic), minimalistic Scheme/Lisps (lambda calculus) or, to a lesser extent, SQL (relational theory, albeit a far from perfect implementation).
- hassy 17y ago> The point he's making is that Erlang grew organically into its current form by way of continual sculpting during use by its creators, rather than being refined to approach a theoretical ideal. Thank you. That is exactly what I meant. Whether Erlang satisfies some definition of "functional" or "OO", or "concurrency-oriented" does not matter. What matters is that it's a kick-ass platform for building scalable distributed fault-tolerant apps. (That said, Erlang is a good introductory language for someone who wants to explore functional programming.)