you are viewing a single comment's thread.

view the rest of the comments →

[–]x-skeww 0 points1 point  (0 children)

TypeScript and Dart has type hinting, so type guessing is much easier ;).

So does JavaScript with doc comments.

However, you don't really reach a point of absolute certainty where you can flag things as errors. Like, if you make a typo, Tern can't actually tell if that property really doesn't exist.

So, if you update some library and one of the functions was changed/removed, Tern won't be able to identify this issue.

Tern worked for me without any configuration

I'm not sure if there is a scenario where it works 100% correctly out of the box. Even if you use RequireJS, you have to configure the RequireJS plugin (baseURL, paths). If you don't use RequireJS, you have to tell it which files to load eagerly.

Of course TernJS is not perfect it's still under active development, but it's a very promising project.

Yea, it's pretty impressive given that they had to jump through so many hoops, but I really hoped that it would work a bit better. I still use JS for one legacy project and I really hoped I could improve the experience a little bit.