Re: Ann: delay pack
Michael Hendricks <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <CAFHuXuax1RCr_M6=2PwDTvsifq8pjmMBYdA42T-6dt=Cckx_gg@mail.gmail.com> |
On Fri, Aug 9, 2013 at 12:33 PM, Ian Tegebo <[email protected]> wrote: > On Fri, Aug 9, 2013 at 11:22 AM, Ian Tegebo <[email protected]> wrote: > > Could > > someone more experienced comment as to previous approaches? > > I just realized that this is a poorly worded question; I didn't mean > someone other than Michael, I meant someone other than myself (that > was more experienced). > No offense taken. I'd also like someone more experienced than me to comment on previous approaches :-) As I researched this module, I found the following prior art: * library(when) offers when/2 and allows one to do the same thing by manually specifying modes at each call site * if I understand NU-Prolog correctly, all its built-in predicates are "delayed" by default * Mercury's compiler reorders goals within a clause to obtain a similar effect I assume this is an old problem in Prolog, so there are probably some great solutions that I'm overlooking. -- Michael -------------- next part -------------- HTML attachment scrubbed and removed