
2 Feb
2010
2 Feb
'10
3:33 a.m.
thanks for all suggestions. zaxis wrote:
For me i like C style instead of layout. For example, func1 a = do -- ... a * 2 -- ...
I always write it as: func1 a = do { -- ...; a * 2; -- ...; }
However, i donot know how to write pure function using C style. func1 a = { -- ...; a * 2; -- ...; }
will not compile without `do`.
Sincerely!
----- fac n = foldr (*) 1 [1..n] -- View this message in context: http://old.nabble.com/About-code-style---tp27414627p27416932.html Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.