On 29/05/2014 10:35, Herbert Valerio Riedel wrote:
On 2014-05-29 at 09:17:58 +0200, Simon Marlow wrote:
While I refactored the ghc code base to declare LANGUAGE pragmas
locally, rather than via -X-flags on the GHC commandline, I've noticed
there were a couple of places where NondecreasingIndentation grammar was used.
What's the current consensus on the use of NondecreasingIndentation? Is
its use still encouraged?
I like it for things like
do
...
if exit_early then return () else do
... more stuff ...
Without NondecreasingIndentation this creeps to the right, which isn't
a good use of whitespace.
I see, so NondecreasingIndentation is mostly used to simulate
early-returns?
I suspect that's what I mostly use it for. Simon PJ likes braces and
semicolons instead :-)
It's not a big deal, but I don't see a strong argument for getting rid
of it either.
Cheers,
Simon
_______________________________________________
ghc-devs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/ghc-devs