2 ms·
It is nice to have the comment next to the sort though, which is otherwise going to be surprising. Probably the best thing to do is to make a constructor metho
by db48x 3y ago
It is nice to have the comment next to the sort though, which is otherwise going to be surprising.
Probably the best thing to do is to make a constructor method for the TaskDesc that sorts the regions to enforce the invariants. The code is evidently getting more complex over time, so packing the complexity up into methods is probably now worth spending a little time on.