3 ms·
I think this is only true for a language like Python, or TypeScript, where types are second class citizens… For me, using types in Swift is sort of like “NOS”
by emehex 4y ago
I think this is only true for a language like Python, or TypeScript, where types are second class citizens…
For me, using types in Swift is sort of like “NOS” in that it’s helped me go faster (and further”!
- scaredginger 4y agoI still find typing in Python and TypeScript hugely beneficial, even just for how it makes my editor work better. Being able to click to a definition does wonders for reading unfamiliar code
- wruza 4y agodefinition In python, go and C maybe, but in typescript? People tend to kungfu-type their APIs way too much where healthy repetition would suffice. I believe ts typing power will eventually become “considered harmful”. I also think that ts should have a way to intertwine types as it does now, but leave that to technical part of dts and give a way to declare that by <that gibberish> you meant <this clear interface>.
- LelouBil 4y agoTypescript types are really powerful imo. I didn't do much js but I was always amazed at how library authors can just "make everything click" with them. Remind me a bit of Rust's type system.