Sjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 2 months agoCompareBooleanssh.itjust.worksimagemessage-square34fedilinkarrow-up1251arrow-down12
arrow-up1249arrow-down1imageCompareBooleanssh.itjust.worksSjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 2 months agomessage-square34fedilink
minus-squaremagic_lobster_party@fedia.iolinkfedilinkarrow-up14·2 months 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-squareDragonTypeWyvern@midwest.sociallinkfedilinkEnglisharrow-up1·2 months 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