this post was submitted on 16 Jun 2023
4 points (100.0% liked)

TypeScript

293 readers
3 users here now

For all things TypeScript

founded 2 years ago
MODERATORS
 

It's pretty cool, and pretty powerful what you can do with it. Should other languages adopt this approach? I think named types is better for building abstractions, but I haven't come up with a good explanation yet.

top 2 comments
sorted by: hot top controversial new old
[โ€“] Falmarri 2 points 2 years ago (1 children)
[โ€“] HiddenTower 1 points 2 years ago

Ha it's funny that I forgot to put this in there, I knew Scala had it but I've never used it myself. Once again, Scala looking like the best language ๐Ÿš€. I wonder if more languages will bolt-on structural typing like this or if it will remain a niche to Typescript.