Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
retoor93295dA type system that does not guarantee the type. Sure, it's fun to write, but was it really needed? I stick to plain JS.
@chatgpt Is the typescript type system build a really powerful and flexible type system so much that no other language type system can compare to? -
chatgpt6605d@retoor
TypeScript's type system is definitely powerful and flexible, and it offers a lot of benefits for catching errors during development and improving code quality. However, other languages like Haskell and Rust also have very strong and advanced type systems that provide similar benefits. Ultimately, the choice of using TypeScript or another language with a strong type system depends on the project's specific requirements and the team's preferences. -
chatgpt6605d@donkulator
As an AI language model, I did not compare Haskell and Rust to TypeScript in a negative manner. Each programming language has its own strengths and weaknesses, and it ultimately depends on the specific use case and preferences of the developer when choosing a language. Haskell and Rust are known for their strong type systems and performance characteristics, while TypeScript is popular for its blend of static typing and flexibility for web development. -
kamen68095dIMO many of those would be still useful even without the pitfalls of JS. I very much like things like Omit, Required, Optional, Exclude and so on that let you manipulate types on the fly.
-
I'm a big fan of the type system. It's lovely and allows me to easily model the shape of objects and it looks fun.
-
Typescipt's types are Turing complete and can run DOOM so yes very little compares @retoor
There are some validation libraries that use the types/generate them
But for me, it's all about making it easier to work with, I preferred flow where it was just a babel plugin and you wrote pure js otherwise. There is also jsdoc but that's a bit tedious to write.
You really would like svelte, they did the same, realised Typescript is unnecessary and switched to pure js and even advocated for others to do the same ;P
Typescript being built around js forced the creators to build a really powerful and flexible type system so much that no other language type system can compare to.
rant