--Moo!
foo x y z = do
x' <- bar x
y' <- return $ bar2 x'
return $ z m x' y'
where m = foo2 x x
1.) I prefer to keep my operands in an uncurried state unless it makes logical since that they should be curried (like representing points)
2.) I prefer to call pure functions from an IO monad with the left arrow return $ because it keeps my return values on the left and easy to see.
3.) I prefer where clauses over let statements (actually I really hate the let statement, even through sometimes it's hard to avoid).
4.) I hate that the compiler gives me a warning about a tab instead of 8 spaces. I will always use a tab. It does not drive me as crazy.
5.) although not shown here, I prefer | over case every day of the week. Don't care if it's slower, it looks better to me.
0
29 Dec 2016 01:41
u/ghost_marauder
in v/programming
1.) I prefer to keep my operands in an uncurried state unless it makes logical since that they should be curried (like representing points)
2.) I prefer to call pure functions from an IO monad with the left arrow return $ because it keeps my return values on the left and easy to see.
3.) I prefer where clauses over let statements (actually I really hate the let statement, even through sometimes it's hard to avoid).
4.) I hate that the compiler gives me a warning about a tab instead of 8 spaces. I will always use a tab. It does not drive me as crazy.
5.) although not shown here, I prefer | over case every day of the week. Don't care if it's slower, it looks better to me.