💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev to Programming@programming.devEnglish · 1 year agoIf a parameter isn't used, what should I pass? - The Old New Thingdevblogs.microsoft.comexternal-linkmessage-square11fedilinkarrow-up118arrow-down11cross-posted to: windows_dev@programming.dev
arrow-up117arrow-down1external-linkIf a parameter isn't used, what should I pass? - The Old New Thingdevblogs.microsoft.com💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev to Programming@programming.devEnglish · 1 year agomessage-square11fedilinkcross-posted to: windows_dev@programming.dev
minus-squarebungle_in_the_jungle@lemmy.worldlinkfedilinkarrow-up7·1 year agoTotes 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.