>Thomas Johnsson <[EMAIL PROTECTED]> suggests allowing guards in
>list comprehensions:

>For example, one cannot write
>       [ .... | (a,b)|a==b <- blablabigexpression ]
>but one has to write
>       [ .... | (a,b) <- blablabigexpression, a==b ]

Yes, let's have guards in list comprehensions but, of course, what you
really wanted to write in this case was:

        [ .... | (a,a) <- blablabigexpression ]

Isn't that much simpler (to write and read)?  Doesn't anyone else miss
non-linear patterns?  If Miranda (tm) could handle them, why can't
Haskell?

Denis Howe <[EMAIL PROTECTED]>
The Free On-Line Dictionary of Computing
Gopher/FTP wombat.doc.ic.ac.uk (146.169.22.42)

Reply via email to