Date: Mon, 05 Apr 2010 09:57:17 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Alejandro Imass <ait@p2ee.org> Cc: Chad Perrin <perrin@apotheon.com>, Polytropon <freebsd@edvax.de>, FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: perl qstn... Message-ID: <4BB9A5ED.3040309@infracaninophile.co.uk> In-Reply-To: <o2oa14066a01004041148zd4ef8167q32b04d58daec8f9f@mail.gmail.com> References: <20100403210610.GA4135@thought.org> <4BB8108A.9080104@FreeBSD.org> <1270371713.5861.98.camel@tao.thought.org> <86aatjnsts.fsf@red.stonehenge.com> <861vevnsow.fsf@red.stonehenge.com> <j2ya14066a01004040945z39191770k2f025752317fb14a@mail.gmail.com> <20100404163353.GA15198@guilt.hydra> <20100404201442.b456044e.freebsd@edvax.de> <o2oa14066a01004041148zd4ef8167q32b04d58daec8f9f@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BB9A5ED.3040309>
