💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱toProgramming@programming.devEnglish·8 months agoIf a parameter isn't used, what should I pass? - The Old New Thing(devblogs.microsoft.com)external-linkarrow-up119arrow-down11message-square11fedilink
arrow-up118arrow-down1external-linkIf a parameter isn't used, what should I pass? - The Old New Thing(devblogs.microsoft.com)💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱toProgramming@programming.devEnglish·8 months agomessage-square11fedilink
minus-squarebungle_in_the_junglearrow-up7arrow-down0·8 months agolinkfedilinkTotes this. I’ve refactored far too many of these things in my day so I just about always reach for an options object if there’s the slightest uncertainty about adding more params in the future.
Totes this. I’ve refactored far too many of these things in my day so I just about always reach for an options object if there’s the slightest uncertainty about adding more params in the future.