Hello Mirko,

Friday, August 3, 2007, 3:32:57 PM, you wrote:

>> rewrite *p++=*q++ in haskell?

> I always reject such codes when produced by my students. It is just 
> unreadable.

it's one of C idioms. probably, you don't have enough C experience to
understand it :)

> So rewriting it in Haskell (of any size) is a good idea to actually
> understand the code. Please, could you do it.

result is that currently C code rewritten in Haskell becomes much
larger and less readable. if you think that readIORef is more
readable than *, and x<-readioref v; writeioref v (x+1) is more
readable than ++  - it's up to you :)



-- 
Best regards,
 Bulat                            mailto:[EMAIL PROTECTED]

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to