开发者

Erlang Programming: Will Learning Prolog Help?

Will learning Prolog help to learn Erlang in a way specific to Erlang? Erlang started as a concurrent Prolog, but is modern Erlang connected to Prolog (beyond syntax)?开发者_StackOverflow中文版 I understand that learning Prolog might be good in the way learning Lisp is good for programming in any language, but I want to know if learning Prolog will help me to learn Erlang specifically, given Prolog's role in Erlang's "origin story".


No, it won't.

is modern Erlang connected to Prolog (beyond syntax)

No, they pretty much have nothing in common.


It might even make it harder. Major thing that Prolog has but Erlang lacks is backtracking. It means that the program can "go back". It takes some time to get used to backtracking and let the language do the work for you. For instance traversing a graph using backtracking. When you switch to Erlang you have to forget all this.

They both share very common pattern matching style of programming.

I do not recommend learning Prolog prior to Erlang.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜