
08-21-2012, 12:38 PM
|
|
Malorian
|
 |
Join Date: May 2004
Posts: 5,289
|
|
|
Using a switch for params is always a great idea. The main reasons for using a switch include improving clarity, by reducing otherwise repetitive coding, and (if the heuristics permit) also offering the potential for faster execution through easier compiler optimization in many cases. Has very little to do with personal preference, and more to do with optimization. |
__________________
Follow my work on social media post-Graal: Updated august 2025.
|
|
|
|