Changes between Version 1 and Version 2 of NondecreasingIndentation


Ignore:
Timestamp:
Nov 29, 2005 1:29:39 AM (10 years ago)
Author:
john@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NondecreasingIndentation

    v1 v2  
    2525}}}
    2626
     27
     28Common uses of this extension are
     29{{{
     30-- short-circuiting returns a la imperative languages
     31
     32foo = do
     33        ...
     34        if cond then return () else do
     35        ...
     36        ...
     37
     38-- when using the FFI one commonly has a lot of nested alloca-like routines
     39
     40foo = do
     41        alloca $ \foo -> do
     42        alloca $ \bar -> do
     43        alloca $ \baz -> do
     44        ....
     45
     46
     47}}}
     48
    2749== References ==
     50
     51
    2852
    2953== Pros ==
    3054 * Just a minor adjustment
    31  * Pro
     55
    3256
    3357== Cons ==