u/ghost_marauder - Archived Voat Post in v/programming
u/ghost_marauder
  • home
  • search

u/ghost_marauder

0 posts · 1 comment · 1 total

Active in: v/programming (1)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: What is your preferred pseudosyntax?
--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
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.