Re:GCC 6: -Wmisleading-indentation vs. “goto fail;”
by wyager on Friday February 26, 2016 @12:29PM
(#11182652)
I've actually never seen production code with braces or semicolons. The only place it's semi-common is when people write complicated expressions and need to put them on one line for the REPL (GHCi).
[ Parent
| on HN ]
Re:GCC 6: -Wmisleading-indentation vs. “goto fail;”
by arnsholt on Friday February 26, 2016 @01:04PM
(#11182875)
I think another use-case for non-layout version is generated code. If you happen to generate Haskell code, it's easier to keep the syntax correct with the explicit notation rather than the implicit whitespace version.