@hongminhee@hollo.social

Is anyone still sticking to instead of using ? If so, why are you sticking with it? Please let me know your reasons!

8 replies

@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.

@gosha@merveilles.town · Reply to 洪 民憙 (Hong Minhee) :nonbinary:

@hongminhee I think Basecamp (and by extension, the Ruby on Rails defaults) have switched from TS back to JS a couple of years back. If I remember correctly, the rationale was that in their usecase (~lightweight UI on top of a Rails backend), types added more complexity than they solved problems.

@BoydStephenSmithJr@hachyderm.io · Reply to 洪 民憙 (Hong Minhee) :nonbinary:

@hongminhee I still write JS because it has a specification. When I adventure into implementation-defined languages for the browser, I use

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".