2 ms·
I'm not blaming Lua. I'm saying that the context where it is used is important and can effect whether things are problems or not. Semi-colons are a bad exampl
by epage 4y ago
I'm not blaming Lua. I'm saying that the context where it is used is important and can effect whether things are problems or not.
Semi-colons are a bad example, you are generally not going to have subtle bugs from those. Off-by-one bugs are already bad enough in programming, having people switch their base index between tasks will not help.
- astrobe_ 4y agoI agree that semantic mismatches are a worse problem than syntactic mismatches. However in the case of Lua, because of dynamic typing and late binding, it would not be wise to not have unit tests and full test coverage. This mostly reduces semantic mistakes (indexing, 0-is-not-false, etc.) mostly to annoyances like syntax errors. "mostly" because some "stateful" operations need additional test efforts, and finding out why a test fails is not always straightforward.