4 ms·
A great point, I agree that extra syntax can help with parser errors. Vale happens to require semicolons at the end of every line, which helps with this (and a
by verdagon 5y ago
A great point, I agree that extra syntax can help with parser errors.
Vale happens to require semicolons at the end of every line, which helps with this (and a few other corner cases around custom binary operators).
- alpaca128 4y agoI once removed all semicolons from a JS codebase when they became optional and encountered situations where this lead to errors as the same code was parsed differently afterwards. So yeah, long story short I'm also a proponent of semicolons. They help avoid ambiguity for both humans and machines, and make splitting lines less awkward.