Re: unusual OR syntax
- From: The Natural Philosopher <tnp@xxxxxxxxxxxxxxx>
- Date: Sat, 28 Nov 2009 00:02:17 +0000
Richard Riley wrote:
"Peter H. Coffin" <hellsop@xxxxxxxxxxxxx> writes:
On Fri, 27 Nov 2009 18:02:34 +0100, Richard Riley wrote:
Erwin Mollerhttp://www.dictionary.net/artifact NB esp. definition 4.
<Since_humans_read_this_I_am_spammed_too_much@xxxxxxxxxxxxxxxx> writes:
Richard Riley schreef:Artifact?
Erwin MollerWhat you call a feature I call an annoying artifact. ;-)
<Since_humans_read_this_I_am_spammed_too_much@xxxxxxxxxxxxxxxx>
writes:
A lot of uncertainty, that is why I don't like the approach. TheThere is no uncertainty. It's a feature of the language. Not using
same can be achieved without using short circuit evaluation, thus
avoiding all these assumptions and possible confusion. [end story
from my early programming days]
the features of the language is a crime in itself.
I know what an artifact is. Lazy evaluation is not an artifact of any
kind. It is a common sense language feature which evaluates a sequence
of expressions until one returns a non "nil" value.
No, its a simple way to turn an IF statement into machine code. That happens to have that side effect.
Saves machine code to do it that way.
That's why its in there.
Its not a feature, its a bug that was documented, and has been left in, because its efficient.
.
- References:
- unusual OR syntax
- From: J. Frank Parnell
- Re: unusual OR syntax
- From: Erwin Moller
- Re: unusual OR syntax
- From: Curtis Dyer
- Re: unusual OR syntax
- From: Erwin Moller
- Re: unusual OR syntax
- From: Jerry Stuckle
- Re: unusual OR syntax
- From: Erwin Moller
- Re: unusual OR syntax
- From: Richard Riley
- Re: unusual OR syntax
- From: Erwin Moller
- Re: unusual OR syntax
- From: Richard Riley
- Re: unusual OR syntax
- From: Peter H. Coffin
- Re: unusual OR syntax
- From: Richard Riley
- unusual OR syntax
- Prev by Date: Re: getting value from buttons
- Next by Date: Re: unusual OR syntax
- Previous by thread: Re: unusual OR syntax
- Next by thread: Re: unusual OR syntax
- Index(es):
Relevant Pages
|