3 ms·
Can you show a common line of type script that will take exponential complexity for typescript to resolve?
by grandempire 2y ago
Can you show a common line of type script that will take exponential complexity for typescript to resolve?
- saagarjha 2y agoI think you misunderstood my comment.
- troupo 2y agoEveryone misunderstood your reply. Perhaps it was a pure academic reply? Because reality always trumps theory.
- saagarjha 2y ago> Perhaps it was a pure academic reply Yes, exactly.
- grandempire 2y agoMy understanding is you are saying TypeScript has a similar complexity problem in its type system as Swift. I am wondering if you have a common example that would timeout or have problems. If not then I struggle to see what similarity you are seeing. (Genuine question, I am interested in what other languages do)
- saagarjha 2y agoNo, I'm saying it has a worse system than Swift's. The point I'm making is that they've designed things such that the normal case doesn't hit this, while Swift keeps adding APIs that exercise the worst of their type system.