4 ms·
Erlang was originally a Prolog dialect. To be specific an external dsl for concurrency implemented on top of a Prolog interpreter. The language moved on and dr
by jasonwatkinspdx 16y ago
Erlang was originally a Prolog dialect. To be specific an external dsl for concurrency implemented on top of a Prolog interpreter.
The language moved on and dropped some of the defining features of Prolog (such a backtracking), but the syntax still resembles Prolog.
- gtani 16y agoIn erlang's pattern matching syntax, arguments given at run time are matched successively against number and types of formal parameters in each ";" separated clause in a function definition (plus against any guard's specified values). This is similar to the syntax in haskell, F# and ocaml, so it may look weird at the outset but it's not an isolated weirdness, and it quickly becomes a natural way to read code.
- chunkbot 16y agoPlenty of languages were initially prototyped in C, but we don't consider them "based on C" because they kept braces. http://stackoverflow.com/questions/3542891/erlang-programming-will-learning-prolog-help http://stackoverflow.com/questions/3542891/erlang-programmin...
- rvirding 16y agoThe language has very definitely moved on and lost ALL of the defining features of Prolog except for some syntax elements. It only resembles Prolog in a very superficial way, mainly that variables start with a capital letter. The semantics are completely different.