4 ms·
It would be really cool if whether the method takes an array or a hash table could somehow be part of the code itself, and if the function is updated but not th
by alkonaut 10y ago
It would be really cool if whether the method takes an array or a hash table could somehow be part of the code itself, and if the function is updated but not the callsite an error is shown?
Alternative title: "Should I use a type system?"
Sarcasm aside: comment anything non-obvious, and make the non-obvious things as few as possible. It's always better to have two lines of overly obvious code, than to have one line of opaque code plus one line of comment.