On 4 June 2010 12:33, Ivan Lazar Miljenovic <ivan.miljenovic@gmail.com> wrote:
Ozgur Akgun <ozgurakgun@gmail.com> writes:The definition. I believe this is probably to make parsing of
[...]
>
> What stops us from allowing alphanum characters appear in the Infix version
> (after the colon)? Can't it be relaxed to only start woth a colon?
"foo:<bar" (using your example below) unambiguous, the same as how
symbolic operators can't contain alphanumeric characters, etc.
>How does a data structure have a faster implementation? >_>
> So I want to be able to say something like:
>
> data Expr = Expr :< Expr -- checks for LT betwen two Expr's
> | Expr :<2 Expr -- a different implementation of the
> same thing maybe
> | Expr :<veryfast Expr -- and the veryfast implementation
> of it