[Haskell-cafe] Strange subtract operator behavior
Peter Verswyvelen
bf3 at telenet.be
Wed Oct 17 04:13:47 EDT 2007
Duh, you're right... silly me. I always put spaces between the operator,
but many people of course don't.
Isaac Dupree wrote:
> Peter Verswyvelen wrote:
>> Personally I could also live with allowing no space between the minus
>> sign and the number... If you leave a space, - becomes the subtract
>> operator.
>
> I once thought that... there was the opposition that (x-1) subtraction
> of a constant appears too often. And I found that I myself wrote that
> several times. And saying "whitespace on the left but not the right"
> seems too complicated for Haskell lexer semantics. So the current
> situation is just unhappy, that's all. (and maybe compiler warnings
> could still be implemented)
>
> Isaac
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
More information about the Haskell-Cafe
mailing list