Hacker News new | ask | show | jobs
by j_w 44 days ago
You should just use objects/structs for function arguments when the arguments have any expectations of being expanded in the future. Use sane default behavior when new arguments/options are added to the function. Consumers of your interfaces will then have a much easier time handling updates down the line.