2 ms·
Prolog doesn't have a conventional programmer oriented introduction. You need to at least include a "Hello World" program like this main :- write('This is a
by mikewarot 4y ago
Prolog doesn't have a conventional programmer oriented introduction. You need to at least include a "Hello World" program like this
main :- write('This is a sample Prolog program'),
write('\nThis program is written into hello.pl file').
?- main.
?- halt.
Next up, there's the fact that math doesn't use the =, but rather uses is to do evaluations at runtime, which drove me nuts. You have to use foreach or forall to do loops, and there are subtle differences
?- forall(between(0,5,N), (A is 5-N,writeln(A))).
5
4
3
2
1
0
true.
It's just not programmer friendly. At least with spreadsheets, you can see what's going on, Prolog is just weird
It's hard to pick up users, if they can't get enough of a grasp of it to make sense of it.