Hacker News new | past | comments | ask | show | jobs | submit login

Given my experience with TS, would assume the opposite is also true. Will likely lint for manual call or for using.



> Will likely lint for manual call or for using.

That's a safe bet.

TypeScript's ability to detect problems in the code seems superior than what Visual Studio ships with for C# - for example it doesn't warn about forgetting to `await` a method call.


But if the opposite was true, why do I have to specify it at all? Why can’t it free on scope exit like any other language, with “let”?


Because it will run in JS and you can do stuff like return something with a lifetime to be scoped at a higher level. Is there too declare intent. Typescript is just really advanced linting.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: