in reply to Re^4: perlcritic speedup
in thread perlcritic speedup
So if you save incomplete syntactically wrong code more often than syntactically correct code, automatic syntax check on file save will be much more annoying than useful. (But wait, if you have to save completely broken code _so_ often, then maybe something _else_ is wrong here?)It doesn't have to be "more often". Even if it's 1-in-10 times, it's still annoying. But, to make you happy, I do it the other way around. With a simple keyboard macro, I can syntax check the file I'm editing -- with as side-effect that the file gets saved*
Maybe root of your attitude to these things is lack of type-closing-brace-after-open-brace skill? ;-)I've experimented with that in 1980s. Using some editor macros to automatically add closing parens, braces and brackets. I found that annoying, because when you're done with a block you now have to navigate over the already present brace.
Beside, if I now type a closing brace, my editor automatically de-indents (and it automatically indents when ending a line with an opening brace).
| * |
|
|
|---|