Re^4: Backdating strict
by LanX (Saint) on Nov 18, 2020 at 21:37 UTC
|
What grandfather meant with "background syntax checking" is called flymake-mode in emacs.
It runs regularly perl -c in the background and highlights problematic lines. And strict will cause compile-time errors, like with undeclared variables.
I know that Komodo offers it too. Not sure about vim or notepad++ or alike.
Though I don't share his confidence that code which evolved without strict can be easily fixed with these tools. I rather share Bill's analysis.
| [reply] [Watch: Dir/Any] [d/l] [select] |
|
Though I don't share his confidence that code which evolved without strict can be easily fixed with these tools
Um, I don't think I expressed that confidence. I did say:
With modern editors that perform background syntax checking it's pretty quick to identify where variables need to be declared and fix that.
which as BillKSmith points out may be the thin edge of the wedge, as indeed you also imply. However, identifying issues is a huge head start in resolving them!
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
| [reply] [Watch: Dir/Any] |
|
| [reply] [Watch: Dir/Any] [d/l] |
|
I was thinking of mentioning flycheck, because it's indeed far more elaborate.
But last time I tried it under Windows it used to slow down and make emacs often pause. (IIRC did the maintainer say that Win is not his concern)
Sorry, but I made it a habit to only recommend OS agnostic solutions. flymake dates back to the antiques of emacs, that's why it's stable.
| [reply] [Watch: Dir/Any] |
|
The syntax highlighting in Emacs' cperl-mode is extensive and tends to catch most of my syntax errors when I notice that the code did not highlight as expected.
This is particularly useful for catching sigil and subscript typos — CPerl mode highlights direct array and hash lookups accordingly, so if I miss the shift key and type $foo[bar] instead of $foo{bar}, the syntax highlighting will indicate my mistake almost instantly.
| [reply] [Watch: Dir/Any] [d/l] [select] |
|
| [reply] [Watch: Dir/Any] |
|
|
|
|
I know that Komodo offers it too
I have downloaded and installed Komodo and it certainly looks impressive. I think I need quite a while to find my way around and start using it to produce something but I shall certainly give it a good try...
I did think of Padre but that doesn't seem to be being developed or supported anymore.
| [reply] [Watch: Dir/Any] |