3 ms·
A convention I've seen in Java libraries and that I'm fond of is: public sort() { preconds() try { doSort() } catch (ex) { handle(ex)
by 0xfadedace 11y ago
A convention I've seen in Java libraries and that I'm fond of is:
public sort() {
preconds()
try {
doSort()
} catch (ex) {
handle(ex)
}
postconds()
}
private doSort() throws Exception {
// core impl
}