Proposal: ArgumentDo

Joachim Breitner mail at
Mon Jul 11 07:45:18 UTC 2016


Am Montag, den 11.07.2016, 08:31 +0200 schrieb Sven Panne:
> Because at first glance, this is visually only a tiny fraction away
> from
>    (if c then f else g)  it d them a elsa b
> which would be parsed in a totally different way. (Personally, I
> think that if/then/else is useless in Haskell and just a concession
> for readers from other programming languages. Having a plain old "if"
> function would have done the job in a more consistent way.) Of course
> syntax highlighting improves readability here, but code should be
> easily digestible in black and white, too. Visual clues matter...

I believe we can and should expect programmers to know the keywords
(there are not many of them) and should _not_ compromise other goals
for “makes similar sense even if a keyword is mistake or mistyped as a
symbol name”.



Joachim “nomeata” Breitner
  mail at joachim-breitner.de
  XMPP: nomeata at • OpenPGP-Key: 0xF0FBF51F
  Debian Developer: nomeata at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the Glasgow-haskell-users mailing list