Hacker News new | ask | show | jobs
by Zambyte 426 days ago
If the type that you're passing as an argument is the type of another argument, you can keep the API simpler by just using @TypeOf(arg) internally in the function instead.