2
User
Recs.
Recs.
2
Updates
Last
Updated
Updated
Activity
9 Options
You can use explicit braces and semicolons instead of whitespace (aka layout) to delimit blocks.
let {
x = 40;
y = 2
} in
x + y
... or equivalently...
let { x = 40; y = 2 } in x + y
... instead of ...
let x = 40
y = 2
in x + y
Because layout is not required, Haskell programs can be straightforwardly produced by other programs.
Specs
Pros
Know any positive aspects of this option?
Cons
Know any negative aspects of this option?
Recommendations
Optional Layout
Recommended 11 years ago
Owen hasn’t added their experience, pros or cons to their recommendation.
Optional Layout
Recommended 11 years ago
Mdixon hasn’t added their experience, pros or cons to their recommendation.