
Hi, 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”. Greetings, Joachim -- Joachim “nomeata” Breitner mail@joachim-breitner.de • https://www.joachim-breitner.de/ XMPP: nomeata@joachim-breitner.de • OpenPGP-Key: 0xF0FBF51F Debian Developer: nomeata@debian.org