[Haskell] a quick question
Brandon S Allbery KF8NH
allbery.b at gmail.com
Fri Feb 4 01:22:28 CET 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2/2/11 22:01 , Ramy Abdel-Azim wrote:
> No need to apologize. Not dumb of you. The mandatory else is unusual. I
> don't personally know of any other language that requires an else for every if.
Haskell's if is an expression, best compared to the ?-: ternary operator in
C and Perl or Python's if-else operator instead of to a control structure.
- --
brandon s. allbery [linux,solaris,freebsd,perl] allbery.b at gmail.com
system administrator [openafs,heimdal,too many hats] kf8nh
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk1LRsQACgkQIn7hlCsL25XSPACfRTlbLfBO6bKmg9EH4RPGSdMx
SvoAnjakFqCArV9GRczvi2b1HZ6BZTjO
=9Vvo
-----END PGP SIGNATURE-----
More information about the Haskell
mailing list