Idris-dev
Idris-dev copied to clipboard
`(=)` is now a parse error
I discovered this in an IRC session while trying to demonstrate another problem.
<triliyn> > :t (=) Nat Nat
<idris-ircslave> error: (input):1:1: error: expected: end of input,
<idris-ircslave> operator
<idris-ircslave> :t (=) Nat Nat<EOF>
<idris-ircslave> ^
Hmm, I think this might always have been a parse error, because = is treated specially as an operator - basically because of the clash with other uses of =.
We can probably make this work, though, as another special case in the parser. Not that I'm keen on adding special cases, but there could be an argument for this.
I'm pretty sure it wasn't a parse error at one point. I remember partially applying it before (like (=) Nat) and being surprised that it wanted the type arguments first (I thought they were implicit).