If statements vs case

Hershel Fisch hershf at rgllc.us
Mon Feb 26 12:00:14 EST 2007


On 2/26/07 4:20 AM, "Mark Smith" <mark at maseurope.net> wrote:

> I just ran a very simple benchmark test, which suggests that if/then
> goes about 20% faster than switch/case.

WOW 
Thanks, Hershel
> 
> Best,
> 
> Mark
> 
> On 26 Feb 2007, at 02:33, Hershel Fisch wrote:
> 
>> On 2/25/07 9:21 PM, "Jim Ault" <JimAultWins at yahoo.com> wrote:
>> 
>> How about speed?
>> Hershel
>>> 
>>> On 2/25/07 6:16 PM, "Hershel Fisch" <hershf at rgllc.us> wrote:
>>> 
>>>> Hi every one, how would one put the differences between multiple
>>>> if, else
>>>> if's vs. case's
>>> 
>>> It is a matter of personal choice and programming style.
>>> They both work, and without good notations can become just as
>>> confusing next
>>> year when try to figure out what the heck you were thinking.
>>> 
>>> Jim Ault
>>> Las Vegas
>>> 
>>> 
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription
>>> preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list