[Haskell-cafe] $ do?

Brandon S Allbery KF8NH allbery at ece.cmu.edu
Thu Dec 23 03:24:53 CET 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/15/10 02:36 , Roman Cheplyaka wrote:
> Regarding the rationale, I'm not so sure and I'd like to hear an
> explanation from someone competent. But I assume it has something
> to do with the fact that if you supply a 'do' argument, you cannot
> supply any more arguments (because 'do' extends to the right as far as
> possible). Not that I'm convinced that it is a valid reason to prohibit
> such construct.

Hm?  do {...} would work, as would using indentation per usual layout rules
(the next argument would be indented no farther than the "do").  It'd
certainly be more confusing to read, though.

- -- 
brandon s. allbery     [linux,solaris,freebsd,perl]      allbery at kf8nh.com
system administrator  [openafs,heimdal,too many hats]  allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university      KF8NH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0SsvUACgkQIn7hlCsL25XM6wCcDvu9G3fc9M5Vv6d2EKZ64X8t
k7YAn0hvoyq0KpmAAEyAD4HIWX8HsMTY
=11UF
-----END PGP SIGNATURE-----



More information about the Haskell-Cafe mailing list