4 ms·
I see now what you mean, youre talking about structural interfaces, like Go and Typescript have. Yes, concept functions are those applied to generics. You may
by verdagon 4y ago
I see now what you mean, youre talking about structural interfaces, like Go and Typescript have. Yes, concept functions are those applied to generics.
You may not like structural interfaces, but they're much better at decoupling data from how it's used. People who have used both Typescript and Rust often wish more languages worked with structural interfaces like Typescript does.
It's easy to see why, looking at the examples in the article.
I believe in decoupling, and think a good language will have as little coupling as possible. To each their own though!