|
|
|
|
|
by kbenson
4622 days ago
|
|
I don't think I'm advocating that in any way, just at a minimum sanely peppering the code with markers. to keep with the quicksort example, a simple single line comment at the top would suffice: /* standard quicksort on foo before we make our choice below */ That hardly seems like insanity to me. |
|
I wouldn't mind if the comment said "using qucksort because n is expected to be large". But only if the choice of quicksort over some other algorithm was deemed significant.