[Haskell-cafe] Re: Monads aren't evil
noteed at gmail.com
Sun Jan 11 10:33:56 EST 2009
2009/1/11 Martijn van Steenbergen <martijn at van.steenbergen.nl>:
> minh thu wrote:
>> I always thought that instead of having two classes of characters, one
>> for variable (and function) names and the
>> other for operators, only the first charater of the identifier could
>> mean it's one or the others,
>> so *vec or +point would be valid operator names and thus >_> too. And
>> C++ could be a Data type name...
> No, operators have to consist entirely of punctuation, and functions
> entirely of alphanumerical characters.
> If what you said were the case, then x+y would be an identifier instead of
> the sum of x and y.
Indeed but what's wrong in writing x + y (with additional spaces) ?
Having the possiblity to write for instance +blah instead of inventing
things such as $>* is neat in my opinion (in code or for typesetting)...
More information about the Haskell-Cafe