4 ms·
A lot of typstronauts in the comments here defending all this insane complexity. There is something fun about complexity, but you don’t need to take a blind eye
by philosopher1234 6y ago
A lot of typstronauts in the comments here defending all this insane complexity. There is something fun about complexity, but you don’t need to take a blind eye to how much harder it makes life to admit your appreciation.
- eyelidlessness 6y agoMany TS advanced features are not designed for everyday end-products. They’re designed for: - more accurately and more maintainably typing existing JS interfaces - enabling more advanced compile time features for libraries I’m probably one of these “typstronauts” you reference, I have extensively used nearly every advanced type feature in library code. But I’ve seldom found a need for any of them in consuming code. My approach since I adopted TS has always been: - libraries can and should provide types at whatever level of complexity necessary to make library usage flexible, safe and simple - end product code should use simple types wherever possible and depend as much as possible on the flexibility, safety and simplicity of the interfaces provided by those more complex libraries