[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: x < y < z
- From: Tim Hill <drtimhill@...>
- Date: Thu, 16 Jul 2015 21:40:47 -0700
> On Jul 16, 2015, at 8:20 PM, Tom N Harris <whoopdedo@whoopdedo.org> wrote:
>
> On Thursday, July 16, 2015 05:52:30 PM Tim Hill wrote:
>> You aren’t getting any run-time benefit, since the logic is just the same.
>
> There is a small advantage with `minimum <= ComputeThisValue() <= maximum` in
> that the VM can store the result in a temporary register for both compares.
> The same thing would require declaring a local for the value and occupying
> that register until the end of the scope.
>
> --
> tom <telliamed@whoopdedo.org>
>
But is that small advantage worth the extra complexity in the language?