Head broken again

Ian Lynagh igloo at earth.li
Thu Jul 5 16:38:51 EDT 2007


On Wed, Jul 04, 2007 at 01:10:05PM +0100, Claus Reinke wrote:
> 
> i'm not a fan of cpp, but two things it was good for in other 
> projects was
> 
>    - to have many branches evolving in one code base,
>        with an easy way to switch between and test all 
> 
>    - to let new code grow inside the main code base
>        with an easy way to switch it on or off as needed

I'm immediately suspicious of any plan involving more CPP use - the
existing CPP we have (for platform-specific code, mostly) is one of the
causes of build problems, as the compiler can't spot that modifying
import lists, refactoring code, giving a function an extra argument,
etc, hasn't broken the build for another platform.

CPP-free code (with dead code elimination doing the job of ifdef) sounds
like a much more attractive goal to me (although not entirely achievable
due to different C libraries and functions being available on different
machines).


Thanks
Ian



More information about the Cvs-ghc mailing list