Sjmarf to Programming Humor@lemmy.worldEnglish • 1 month agoCompareBooleanssh.itjust.worksimagemessage-square97fedilinkarrow-up1513arrow-down19
arrow-up1504arrow-down1imageCompareBooleanssh.itjust.worksSjmarf to Programming Humor@lemmy.worldEnglish • 1 month agomessage-square97fedilink
minus-squaremagic_lobster_partylinkfedilink18•1 month agoMy guess to why there’s two functions is because it was originally only internal, and the programmer realized they needed public as well, but changing internal to public is too scary so they created a new method instead.
minus-square@DragonTypeWyvern@midwest.sociallinkfedilinkEnglish1•30 days agoThat does sound scary on general principles
My guess to why there’s two functions is because it was originally only
internal
, and the programmer realized they neededpublic
as well, but changinginternal
topublic
is too scary so they created a new method instead.That does sound scary on general principles