logoalt Hacker News

(Ab)Using Overload Sets to Create Ad-Hoc Template APIs in D

8 pointsby WalterBrightlast Sunday at 6:08 PM2 commentsview on HN

Comments

Kapendevlast Sunday at 8:56 PM

Very interesting post. How can I use that for web development? My senior told me to ask this question.

WalterBrightlast Sunday at 6:08 PM

“Overload set” is a term of art that seemingly arises from the reuse of overload rules across the years. Overload sets quietly power a lot of D’s generic programming, and once you understand them explicitly, a whole class of API design opens up.