On Nov 27, 2009, at 06:42 , Martijn van Steenbergen wrote:
Sebastian Fischer wrote:
Does anyone know why types and values are in separate namespaces but classes and types are not?

Good question. I don't know the answer, but it is interesting to note that the report explicitly mentions this decision (but provides no reason):

"An identifier must not be used as the name of a type constructor and a class in the same scope."


My guess is to make it easier to catch the error of using a class name as a type.

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [email protected]
system administrator [openafs,heimdal,too many hats] [email protected]
electrical and computer engineering, carnegie mellon university    KF8NH


Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to