Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Generic Programming Must Go.
- static interfaces (C++ concepts, Rust traits, Haskell typeclasses... or whatever name they have in a particular language)
- and the more adhoc compile-time duck-typing (eg: D static if, C++ expression SFINAE). Alexandrescu is arguing for the latter being more useful.
I can only agree with him considering the sheer difficulty of making reusable generic code that squarely fits a problem domain.
Programmers interested in meta-programming and reuse would probably enjoy the talk.
There are no comments on this comment yet.
- static interfaces (C++ concepts, Rust traits, Haskell typeclasses... or whatever name they have in a particular language)
- and the more adhoc compile-time duck-typing (eg: D static if, C++ expression SFINAE). Alexandrescu is arguing for the latter being more useful.
I can only agree with him considering the sheer difficulty of making reusable generic code that squarely fits a problem domain.
Programmers interested in meta-programming and reuse would probably enjoy the talk.