You are viewing a single thread.
View all comments View context
2 points
*

A) yes, that’s how interpreted languages work.

B) the very simple, long established way to avoid it, is to configure your linter:

https://eslint.org/docs/latest/rules/no-undef

I haven’t used Perl though, what do you like better about it?

permalink
report
parent
reply

@masterspace

I haven’t used Perl though, what do you like better about it?

“Undeclared variable” is a compile-time error.

permalink
report
parent
reply
1 point

K, well configure your linter the way a professional Typescript environment should have it configured, and it will be there too. Not to be rude but not having a linter configured and running is a pretty basic issue. If you configured your project with Vite or any other framework it would have this configured OOTB.

permalink
report
parent
reply

@masterspace

Not to be rude but not having a linter configured and running is a pretty basic issue.

Yeah, if you’re a C programmer in the 1980s, maybe. But it’s 2006 now and compilers are able to do basic sanity checks all on their own.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 4.3K

    Monthly active users

  • 943

    Posts

  • 10K

    Comments

Community moderators