4 ms·
> "Steadfastness basically means that you cannot force a predicate down the wrong path by filling in output arguments wrongly."[1] Interesting. Yeah is how I o
by rdtsc 13y ago
> "Steadfastness basically means that you cannot force a predicate down the wrong path by filling in output arguments wrongly."[1]
Interesting. Yeah is how I often mess up. The backtracking just ends up going the wrong way.
Are you familiar with Mercury, what do you think of it. They add besides type, also predicate determinism. Something like (copy paste from its example code):
>
:- mode append(in, in, out) is det.
:- mode append(out, out, in) is multi.
Here they determine various determinism modes of predicate append. Do you see that as a good improvement? Very useful? Or a nice to have option?
- danieldk 13y agoUnfortunately, I have never used Mercury. But it likes like a nice addition to be able to specify in/out arguments. In Prolog there are the ?/-/+ markings, but these are for documentary purposes.