Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
ivxvm
2y ago
0 comments
Share
Not really possible, because Record and Map aren't compatible at all. At best they both have something like `toString`. You'll need to define at least something like RecordFunctor<T> and MapFunctor<T> to make this useful.
0 comments
default
newest
oldest
mbwgh
2y ago
Only if you want to abstract over them at usage-site.
In my case I only ever used the concrete types and converted between them at some point.
ivxvm
OP
2y ago
Oh, so it's just a type alias for readability. Then it makes sense.
j
/
k
navigate · click thread line to collapse