3 ms·
It does, unfortunately, have significant whitespace. (I'd be curious to hear from a blind person whether sig whitespace is as painful to them as it sounds like
by kdmccormick 3y ago
It does, unfortunately, have significant whitespace. (I'd be curious to hear from a blind person whether sig whitespace is as painful to them as it sounds like it would be to me.)
- kencausey 3y agoUsing whitespace for formatting while standard is optional, you can instead use braces. See section 2.7 of the Haskell Language Report: https://www.haskell.org/onlinereport/haskell2010/haskellch2.html https://www.haskell.org/onlinereport/haskell2010/haskellch2....
- kdmccormick 3y agoThis is always pointed out, and it's cool and great, but as soon as you're reading anyone else's code, you either need to read the whitespace yourself or convert to and from it. Idk, maybe that's not as bad as it sounds.
- masklinn 3y ago> It does, unfortunately, have significant whitespace. Haskell is actually defined as a braces-and-semicolon langage with an off-side rule for the convenience of layout sensitive code. The transformation is simple and completely deterministic, so if delimiters and separators are preferable to a blind coder they can reasonably easily use that.