Hacker News new | past | comments | ask | show | jobs | submit login


Does that mean writing a separate version of an algorithm for each type or types that you want it to handle? Like a sort for ints, a sort for floats, etc., even if the logic is otherwise the same (or almost)?

Not a PL design or theory expert, just interested.

Yes, it means specializing the code and generating a separate version of the function for each type it is instantiated with.

Got it, thanks.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact