Original-Via: uk.ac.nsf; Tue, 15 Oct 91 14:44:45 BST



> Tony Davie's remarks prompt me to ask: "Who needs mutually recursive modules
> anyway?".  I've never missed the facility in Miranda and my programs
> are much the clearer for it --- module dependency diagrams with NO
> directed cycles --- bliss!
> 
> I expect there is some pressing (and obvious) reason why
> mutual recursion is a must in Haskell --- could someone enlighten me ?
> 
> Ian Poole

Take the machine code generator in the LML compiler as an example.  It
consists of several thousands of lines of LML.  Logically it is really only
one module, But it is necessary (and indeed desirable) to split this up in
smaller units, to be able to compile it at all.

-- Thomas Johnsson


Reply via email to