4 ms·
The caller should be able to call the methods in any order, it sounds like you have some horrible stateful code.
by flukus 10y ago
The caller should be able to call the methods in any order, it sounds like you have some horrible stateful code.
- cel1ne 10y agoYou are wrong. Most interfaces in non-functional languages are stateful. Take the JDBC-interface: It's certainly not possible to call setTransactionIsolation(), executeQuery(), commit(), rollback() etc. in any order. Or list: add, remove, set, clear etc. It's still an interface.