amilner42 / code-tidbit

Share Programming Knowledge Better
GNU General Public License v3.0
9 stars 1 forks source link

Switch to experimental elm-fmt #184

Closed amilner42 closed 7 years ago

amilner42 commented 7 years ago

The @exp version of elm-format seems to not indent after the in in let .. in .. which would make my code way less indented and just seems like it would be way better.

now

let
    a =
        5
in
    a

exp

let
    a =
        5
in
a

It looks uglier but the reality is it'd make big blocks of code way more readable. You can kinda parralel this to the fact that we don't indent on .then for promises, cause otherwise the code would get way too indented.