3 ms·
At least in Java, no one's stopping you: import static com.whatever.LinearAlgebra.multiply; ... multiply(matrix, vector); I think it's a worthwh
by cousin_it 12y ago
At least in Java, no one's stopping you:
import static com.whatever.LinearAlgebra.multiply;
...
multiply(matrix, vector);
I think it's a worthwhile tradeoff to make source files serve as the unit of namespacing and encapsulation. You lose some flexibility, but large programs become easier to read, and new programmers have fewer random conventions to learn.