On 17 May 2008, at 22:52, immanuel litzroth wrote:
Haskell does not "deduce" what to include. You have to explicitly import each module or no magic happens. Can't really see the big difference with #include "stdio.h" and import Unix.
C is composed of two languages: the preprocessor, to which #include belongs, and merely composes the files into one compile unit, and the C compiler, which processes that. So the C language itself does not have any #include directive. This setup makes it impossible for the C language to deduce module dependencies the way Haskell does, which causes the complicated setup of the compiler. And of course, in Haskell, one needs to tell which modules to import.
Hans _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user