|
Douglas Handy wrote: > ... > I wouldn't be adverse to the introduction of a SWITCH statement which had the > purist implementation and presumably better performance, but I'm not convinced > the performance difference is critical (or even perceptible) anymore. That's why I mentioned in my previous note that the traditional fast switch/case statement is nowhere to be found in many modern programming languages. But I don't really think it's because of the lightning fast performance of current CPU's. I think it's more that the switch statement is just not as useful in an object-oriented style of programming. Rather than coding a switch statement with multiple cases for each variation, in OO programming, you just tell the object what to do, and it knows how to do it. Cheers! Hans
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.