
Hi, Am Sonntag, den 06.09.2015, 11:28 -0700 schrieb Andrew Gibiansky:
3. It does make some cases cleaner. Consider the following code: [1, 2, 3] ++ concat (do { .... }). This can be written with parentheses, bit it cannot be written with $, because [1, 2, 3] ++ concat $ do { .... } would parse as ([1, 2, 3] ++ concat) $ do { ... }. This is sometimes annoying behaviour. (I used the list monad here just for demo purposes. I find it is more common with applicative operators.)
good point! This has bitten me before. I believe that the language would be better with the proposed syntax change being the default. So the way forward is to indeed add this extension, see how people use it, and if Haskell' ever goes somewhere, it might include this as the default – all alike to DoAndIfThenElse. Also note that this does not change the meaning of any existing program, AFAIK. So it is not that you might be reading existing code wrongly if you are not aware that this extension is being used; you will just find code that looks like invalid syntax to you – until you check the list of extensions (or just deduce that ArgumentBlock is used here). Therefore, +1 from me. Greetings, Joachim -- Joachim “nomeata” Breitner mail@joachim-breitner.de • http://www.joachim-breitner.de/ Jabber: nomeata@joachim-breitner.de • GPG-Key: 0xF0FBF51F Debian Developer: nomeata@debian.org