Difference between logic programming and functional programming

前端 未结 8 904
萌比男神i
萌比男神i 2021-01-29 22:56

I have been reading many articles trying to understand the difference between functional and logic programming, but the only deduction I have been able to make so far is that lo

8条回答
  •  别那么骄傲
    2021-01-29 23:24

    Prolog, being a logical language, gives you free backtracking, it's pretty noticeable.

    To elaborate, and I precise that I'm in no way expert in any of the paradigms, it looks to me like logical programming is way better when it comes to solving things. Because that's precisely what the language does (that appears clearly when backtracking is needed for example).

提交回复
热议问题