Bulat Ziganshin wrote: > i strongly support this suggestion. actually, i suggest the same for > dealing with references (IORef/MVar/...), for example: > > do x <- newIORef 0 > y <- newIORef 0 > z <- newIORef 0 > z := *x + *y -- translated to { x' <- readIORef x; y' <- readIORef y; > writeIORef z (x'+y') }
May I humbly suggest you explain what problem you are actually trying to solve here? I've never felt the need to hide monadic binding behind fancy syntax, defining some combinator was always sufficient. I mean... if you want C, you know where to find it. If possible I'd rather not see the same programming "style" in Haskell. Udo. -- <Marticus> There's too much blood in my caffeine system.
signature.asc
Description: Digital signature
_______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell