|
Hans, >I suppose the current design of SELECT grates on me since it's not >really the statement it should have been. On the other hand, if RPG >programmers like it, I shouldn't complain. I, for one, really like the ability to use expressions on each WHEN clause as opposed to a integer lookup. This is particularly true since, until recently, there was not an ELSEIF statement. With ELSEIF available, one could argue for a more "pure" SELECT, although at least in the fixed format syntax I still like SELECT over IF/ELSEIF. One reason is that, without indentation, it is still obvious you are dealing with a multiple exclusive choice structure. 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. Doug
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.