Sjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 24 days agoCompareBooleanssh.itjust.worksimagemessage-square91fedilinkarrow-up1494arrow-down15
arrow-up1489arrow-down1imageCompareBooleanssh.itjust.worksSjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 24 days agomessage-square91fedilink
minus-squaremagic_lobster_party@fedia.iolinkfedilinkarrow-up16·24 days 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.
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.