4 ms·
I think in a nutshell you are saying a developer could accidentally hit tab one too many times. Just test against any visual regressions, it's not hard.
by throw156754228 2y ago
I think in a nutshell you are saying a developer could accidentally hit tab one too many times. Just test against any visual regressions, it's not hard.
- lolinder 2y ago"Just" don't do that is easy to say, but it's better to design the language to make it easy to catch mistakes. The urge to remove delimiters is the lojban impulse [0] applied to programming languages. It's elegant and clean and impractical. [0] https://mw.lojban.org/index.php https://mw.lojban.org/index.php
- throw156754228 2y agoRead my message again, I'm not saying 'just don't do that'.
- lolinder 2y ago"Just test against visual regressions" sounds to me like "just look twice at the code you indented". Did I misunderstand?
- throw156754228 2y agoWhat I mean is this code should be tested like any other, using visual testing suites like playwright or cypress.
- lolinder 2y agoGot it. My opinion is that if your answer to a deficiency in the language's syntax is to just test harder you're missing something. Quick feedback loops are essential, and the quickest feedback loop at all is having a syntax where it's immediately obvious to the human looking at the code (before analysis is even run!) when there's a problem.
- throw156754228 2y agoNo not test harder. You should be testing anyway.