[Haskell-cafe] Why shouldn't variable names be capitalized?

Martin Percossi haskell-cafe at martinpercossi.com
Fri Aug 4 13:12:24 EDT 2006

Hi, I'm wondering what the rationale was for not allowing capitalized 
variable names (and uncapitalized type names and constructors). I can 
only think of two arguments, and IMHO both of them are bad:

1. Enforces a naming convention. Fine - but my view is that this doesn't 
belong in the language definition (it belongs in the user's coding 
standards). I get annoyed, for example, that when I write code that 
manipulates matrices and vectors, I can't refer to the matrices with 
capital letters as is common in the literature. And to anyone who says 
that it's good to enforce naming consistency, I have this to say: Any 
language that requires me to learn about category theory in order to 
write imperative code should treat me like an adult when it comes to the 
naming of variables as well. ;-)

2. It makes it easier to write the compiler. I don't think I need to 
explain why this is bad...

I imagine that someone is just itching to "sort me out". Do your worst! ;-)


More information about the Haskell-Cafe mailing list