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

TypeScript

287 readers
1 users here now

For all things TypeScript

founded 1 year 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.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Falmarri 2 points 1 year ago (1 children)
[โ€“] HiddenTower 1 points 1 year 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.