node script.ts command.
@hongminhee @Razemix For simple Node projects you can use typescript since `node somefile.ts` works
If you use `erasableSyntaxOnly` to develop the typescript files Node can run them.
@hongminhee I don't want another tool that needs to be added to the build pipeline.
I would perhaps change my mind if there was a typescript compiler that can be used using the default go tooling.
@hongminhee I don't like having to mess with extra build steps. I like typescript but not enough to justify the hassle.
Instead, I use asserts at the beginning of methods to check argument values and types, and sometimes for return values.
Along with good test coverage, I feel like this gives me some of the benefits of type declarations.
@hongminhee I still write JS because it has a specification. When I adventure into implementation-defined languages for the browser, I use #PureScript
I had great hopes for TypeScript when they were still maintaining the specification, but I dropped it once their solution to implementation drifting from specification was to retire the specification.
---
Also, I come from the camp that the only real type system is a static type system, like Pierce in "Types and Programming Languages".