3 ms·
On the other hand, Go's type system is so bad that it nullifies all the benefits it brings to the table. I'd rather have no type system than Go's type system, b
by spion 10y ago
On the other hand, Go's type system is so bad that it nullifies all the benefits it brings to the table. I'd rather have no type system than Go's type system, but why even ponder that if I can have everything? With JS I can start out with dynamic types, then switch to static types if the need arises (typescript, flow), fully or partially. Oh, and both of those have really good generics btw.
And we have async/await too now, which means async code can also look almost the same as sync code. So I would still choose JS over both Python and Go (at least for that particular use case). mypy still has long ways to go before its anywhere near TS or Flow.
- smitherfield 10y agoPython has async/await now too (and it's considerably nicer than JS's version).
- spion 10y agomypy is immature compared to TypeScript and Flow. In theory, python is better (mypy, pypy, async/await). In practice most libs don't use asyncio (in node everything does and can be auto-promisified), can't run on pypy (in node everything runs with the fast JIT optimizing things) and the typechecker is not mature enough to express most things (unlike TS/Flow).
- nickstefan12 10y agoIve never put the words together, but you've basically highlighted what I want: Python (and its type system) + Go routines Where can I find that!?
- ricardobeat 10y agoTypeScript?