4 ms·
You don't have to pass the arguments through the class's member variables.
by Rusky 13y ago
You don't have to pass the arguments through the class's member variables.
- AnimalMuppet 13y agoYeah. qsort should be a static function - it should use the class only for scoping, not for holding data.
- the_af 13y agoThat's a really minor issue, and to me it's disingenuous to imply it makes a difference for the comparison at hand. Would it really change the argument if the Java code used a static method and passed all variables as arguments, instead of using instance members?
- ww520 13y agoYes, it would make a big difference and make one of his central claims go away - stateful requirement for qsort in Java.
- the_af 13y agoYou're right, as I replied to you elsewhere. I had missed that the author made the "stateful" argument, and I focused on verbosity and things like i and j instead.