[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eliminate conditional short-circuit behavior for | and & operators?
From: |
Philipp Kutin |
Subject: |
Re: eliminate conditional short-circuit behavior for | and & operators? |
Date: |
Sat, 14 Dec 2013 14:25:16 +0100 |
On Tue Dec 10 22:48:43 CST 2013, John W. Eaton wrote:
> I propose the following change:
> (...)
> * Move the warning from the parser to the evaluator.
I have generally appreciated Octave's maybe-short-circuit-eval warning
because it basically told me "look, this code uses questionable
features and ought to be cleaned up", an advice which I gladly
accepted.
> (...) Matlab's rules for
> short-circuit evaluation are not just about the operators being inside
> IF or WHILE conditions, but also that the first operand is a scalar.
Ouch. That really warrants the "braindead" label.
--Philipp
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: eliminate conditional short-circuit behavior for | and & operators?,
Philipp Kutin <=