[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.
- Question about short circuit operators, Robert T. Short, 2011/02/24
- Re: Question about short circuit operators, Jordi Gutiérrez Hermoso, 2011/02/24
- Re: Question about short circuit operators, Robert T. Short, 2011/02/24
- Re: Question about short circuit operators, Michael D Godfrey, 2011/02/24
- Re: Question about short circuit operators, CdeMills, 2011/02/25
- Re: Question about short circuit operators, Jordi Gutiérrez Hermoso, 2011/02/25
- Re: Question about short circuit operators, John W. Eaton, 2011/02/25
- Re: Question about short circuit operators, Jordi Gutiérrez Hermoso, 2011/02/25
- Re: Question about short circuit operators, Michael D Godfrey, 2011/02/25
- Re: Question about short circuit operators,
Jordi Gutiérrez Hermoso <=