Le vendredi, 13 novembre 2015 à 15:22, Hannes Mehnert a écrit :
> I personally find the cohttp and TCP/IP code hard to read due to the use
> of lots of functors / module abstractions, which are not necessarily
> needed IMHO.

Not only they are not needed, it's also the wrong way of handling this as it is 
well known that factoring out module dependencies as functors doesn't scale in 
practice. The question to ask yourself for using a functor is: do I need 
multiple instances of the functor in *the same program* — good examples: 
{Map,Set}.Make.

See http://www.cis.upenn.edu/~bcpierce/papers/modules-icfp.ps for more on this. 
 

Best,  

Daniel



_______________________________________________
MirageOS-devel mailing list
[email protected]
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

Reply via email to