[Haskell-cafe] Coding conventions for Haskell?
Johan Tibell
johan.tibell at gmail.com
Sat Sep 25 11:18:56 EDT 2010
On Sat, Sep 25, 2010 at 5:06 PM, Donn Cave <donn at avvanta.com> wrote:
> Though it's common practice for sure, maybe universal, does the
> "Don't insert a space after a lambda" rule make sense?
>
> I found it confusing at first sight, because of course it looks
> like something else - in "\n m -> ...", to the uninitiated it
> represents a newline, for example. Now that I understand that
> it's a symbolic keyword, it's an odd way to treat it. This has
> probably come up before, so feel free to ignore, "I'm just saying."
I think I lean more towards surrounding "\" with spaces nowadays.
> The white space I have trouble deciding on is one-line record
> syntax -- ARecord { aField = "a" }, or maybe ARecord {aField = "a"}.
I always do the former and I think it's the more common style.
More information about the Haskell-Cafe
mailing list