zlacker

[parent] [thread] 2 comments
1. YeGobl+(OP)[view] [source] 2024-10-14 11:40:05
I think there are declarative elements in various high-level languages, e.g. Linq queries in C# so I guess it is an exageration to say "zero-declarative", but in general the level of declarative-ness is tiny compared to Prolog.

Did I misunderstand what you mean?

replies(1): >>thesz+nbg
2. thesz+nbg[view] [source] 2024-10-20 21:52:55
>>YeGobl+(OP)
Have you tried Haskell?

For example, it is possible to embed backtracking logic programming [1] into Haskell with not a big effort.

[1] https://hackage.haskell.org/package/logict

replies(1): >>illogi+9Yp
◧◩
3. illogi+9Yp[view] [source] [discussion] 2024-10-24 15:21:33
>>thesz+nbg
It sure is if you read enough "Functional Pearls" to think all you need for logic programming is some backtracking. Oh, and the cut. Because you can't control backtracking without the cut. Not if you don't understand what the backtracking is for in the first place! Mwahahaha.

Oh sorry. Did I let my schadenfreude out again?

[go to top]