Brian Boutel writes:
> The <- syntax worries me a bit, because in the comprehension use it has a
> different type, but the let syntax is available, and one can write "let p =
> e" "for p <- e". I think that, to reduce possible confusion, I would use,
> and teach, the let form. Given that, I don't object to the funny use of <-.
Good point, but now one has too many ='s:
simplify (Plus e e') | let (Val 0) = s = s'
| let (Val 0) = s' = s
| otherwise = Plus s s'
where
s = simplify e
s' = simplify e'
I think that's very confusing too.
Cheers,
Andy
- Re: A new view of guards Lennart Augustsson
- Re: A new view of guards Manuel Chakravarty
- Re: A new view of guards Johannes Waldmann
- Re: A new view of guards Heribert Schuetz
- Re: A new view of guards Simon L Peyton Jones
- Re: A new view of guards Alex Ferguson
- Re: A new view of guards John Launchbury
- Re: A new view of guards Brian Boutel
- Re: A new view of guards Frank Christoph
- Re: A new view of guards Tony Davie
- Re: A new view of guards Andrew Moran
- Re: A new view of guards D. tweed
- Re: A new view of guards Greg Michaelson
- Re: A new view of guards Stefan Kahrs
- Re: A new view of guards Simon Marlow
- Re: A new view of guards Tony Davie
- Re: A new view of guards Libor Skarvada
- Re: A new view of guards Hans Aberg
- Re: A new view of guards Alex Ferguson
- Re: A new view of guards Heribert Schuetz
- Re: A new view of guards Alex Ferguson
