[Haskell-cafe] Handling platform- or configuration-specific code (or, my CPP complaints)

Malcolm Wallace malcolm.wallace at me.com
Thu Sep 9 04:47:40 EDT 2010

> In general, I think using CPP for actual macro processing is  
> extremely poor style and can easily make code inscrutable (and no  
> doubt bug-prone). If the Haskell spec were to add support for this  
> sort of top-level compiler/compiletime-flag conditional definition,  
> I'd switch over.

I agree that CPP used only for conditional compilation, is much more  
acceptable than using it for macros as well.  And co-incidentally,  
cpphs has a --nomacro flag.  :-)


More information about the Haskell-Cafe mailing list