octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about short circuit operators


From: Jordi Gutiérrez Hermoso
Subject: Re: Question about short circuit operators
Date: Fri, 25 Feb 2011 11:56:26 -0600

On 25 February 2011 11:30, Michael D Godfrey <address@hidden> wrote:
> Well, OK.  To the extent that the warning reminds people of the weird
> Matlab behavior I guess it is OK.   But, in the quoted cases of no
> side-effect
> the warning is otherwise meaningless.

It sounds to me really complicated to implement to make the
interpreter figure out if an expression being short circuited or not
has a side effect. It's probably equivalent to a halting problem. I
think it's easier to let humans figure it out, and the warning lets
them know if they have to figure it out or not.

- Jordi G. H.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]