On Sun, Jun 14, 2009 at 10:26:45PM +0100, Neil Mitchell wrote:
> 
> > I've changed it to require -XGHCForeignImportPrim.
> 
> The idea of naming a language feature with a compilers name seems like
> a bad idea - surely these extensions could possibly work in other
> compilers, for example LHC.

It's a bit of an odd one: The Haskell syntax

    foreign import prim "foo" ident :: type

is in principle portable, but whatever lies on the other side (some C--
code in the case of GHC) is almost certainly not.

Personally I'd have named it ForeignImportPrim, but I can also see the
logic behind making the name GHC-specific. I don't feel strongly either
way.

I think that ForeignImportGhcPrim is a better name than
GHCForeignImportPrim, though.


Thanks
Ian

_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to