[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lightweight syntax: a dissident view
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 24 Nov 2010 12:32:01 +0200
On Wed, Nov 24, 2010 at 12:14 PM, Axel Kittenberger <axkibe@gmail.com> wrote:
> selectF(x, \(tableA.foo), \(tableB.foo), \(tableC.foo))
And there's a similar problem with the current assert; it always
evaluates the message, which might involve a costly calculation that
by definition only has to be evaluated under exceptional
circumstances.
assertF(condition,\(costly result))
Naturally, any 'short cut' can lead to Perl-ism, but there the answer
is not restricting the language, but encouraging good style. I know
people get overexcited with new features but common sense prevails -
Bjarne Stroustrup gave that advice about C++, don't try to use it all
at once.
steve d.