perl qstn...
Matthew Seaman
m.seaman at infracaninophile.co.uk
Mon Apr 5 08:57:32 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/04/2010 19:48:14, Alejandro Imass wrote:
> But honestly pun aside unless(){} is far more readable than if(!){}
> and _especially_ if you are programming in an exception manner as you
> correctly point out. Every language should have an unless construct.
I've always found that 'unless' makes a great deal of sense when used
in the alternate syntax:
do_foo()
unless $condition ;
As far as I know, perl and its descendant ruby are the only programming
languages that let you put the condition test after the action, despite
this being exceeding familiar in human languages.
Cheers,
Matthew
- --
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAku5pe0ACgkQ8Mjk52CukIxiwwCfVV5FD7gYil3eIG67Cgh14Hlt
hnkAnRRggI9Eq13y9eWJYFNzSOMNX546
=5jSW
-----END PGP SIGNATURE-----
More information about the freebsd-questions
mailing list