4 ms·
"1. Today’s mainstream developers who are used to C or Java like syntax wont find its Prolog-like syntax too friendly. Unless you started programming since the
by waterlesscloud 16y ago
"1. Today’s mainstream developers who are used to C or Java like syntax wont find its Prolog-like syntax too friendly. Unless you started programming since the 80’s & 90’s and are used to languages of similar syntax, it will take quite some time before you get comfortable with Erlang’s weird syntax. I never felt too comfortable with the syntax."
Huh? And...huh? It's not prolog like, and it's not like anything mainstream from the 80s and 90s. What am I missing here?
- defen 16y agoI think it's a misunderstanding based on the fact that Erlang was originally implemented in Prolog, so in some ways the language features are superficially similar - pattern matching and single assignment come to mind. Regardless of where it came from, though, it really is ugly. But it does get the job done, and the rules aren't that hard to learn. They're actually pretty simple, and with the right emacs mode it's pretty hard to mess up. http://www.sics.se/~joe/pubs/prac_appl_prolog.ps http://www.sics.se/~joe/pubs/prac_appl_prolog.ps
- prospero 16y agoThe syntax is absolutely based on Prolog, as evidenced by the significant capitalization and the mixed semicolons and periods.
- chunkbot 16y agoThis statement only reflects a poor understanding of what it means to be "based on Prolog". I know Prolog well, and use Erlang every day, and I can tell you that they share nothing in common beyond the most superficial of commonalities. http://stackoverflow.com/questions/3542891/erlang-programming-will-learning-prolog-help http://stackoverflow.com/questions/3542891/erlang-programmin...