On Oct 16, 2012, at 4:11 PM, Matt Gushee wrote: > Hi, Kon-- > > On Tue, Oct 16, 2012 at 4:52 PM, Kon Lovett <konlov...@gmail.com> wrote: > > On Oct 16, 2012, at 3:40 PM, Matt Gushee wrote: > > > I am trying to understand the usage of module interfaces > > > > The 'functor' facility is for generic programming. > > Yes, I'm familiar with functors from my time programming in OCaml. I found > them quite useful on occasion. > > The levenshtein egg uses functors to abstract cost arithmetic & sequence > access. > > Okay, I've looked at your code, and I am starting to understand. Shouldn't > this usage be documented? The page on modules in the manual makes no explicit > association between interfaces and functors. Indeed, I don't see any hint > that interfaces can be used in functor definitions the way you do in your egg.
See http://wiki.call-cc.org/man/4/Modules.html#functors Buried at the bottom. > > Thanks for the info. > > -- > Matt Gushee > _______________________________________________ > Chicken-users mailing list > Chicken-users@nongnu.org > https://lists.nongnu.org/mailman/listinfo/chicken-users
_______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users