Stewart Stremler wrote:
How you can tell if the example was truncated or not?
I know, I know, my problem is that I'm not psychic like all ya'll.
Ah, I see. Nah, that is a fully functional (not perfect, just fully
functional) quicksort.
Plus, it needs comments.
I disagree here. You need to know the language to interpret it, but
even without that, if you have a familiarity with the quicksort
algorithm, it is very easy to see what is happening here.
And _that's_ one of the reasons I would stay the hell away from such
languages -- it's not about the language, so much as it is about
the arrogance of the adherents. There are some communities I do not
wish to be a part of.
It is NOT arrogance to assume people know what quicksort before calling
it, or at least thinking that they might look it up when faced with no
documentation. More importantly, if they *don't* know what quicksort is,
they are likely going to be confused by any comments you put in the code
that aren't a complete explanation of what quicksort is, and such an
explanation just makes the larger code *less* readable for everyone else.
--Chris
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg