io@piefed.blahaj.zone to Microblog Memes@lemmy.worldEnglish · 2 months agohardest problempiefed.cdn.blahaj.zoneimagemessage-square75linkfedilinkarrow-up1916arrow-down115file-text
arrow-up1901arrow-down1imagehardest problempiefed.cdn.blahaj.zoneio@piefed.blahaj.zone to Microblog Memes@lemmy.worldEnglish · 2 months agomessage-square75linkfedilinkfile-text
minus-squareLuxyr@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up5arrow-down2·2 months agoThing with this joke that his me wrong is that isn’t how if statements are written. The else does not come before the condition in any language I’ve ever used or seen. At the very least. It should be that he comes back with 1 or 13 loaves. Buy a loaf If they have eggs Buy a dozen loaves
minus-squarexor@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up10·2 months agoloaves = 1 if (eggs) loaves = 12
minus-squareLuxyr@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up4arrow-down1·2 months agoI see that as requiring an instruction of replacement, like buy a dozen instead.
minus-squareMountainaire@lemmy.worldlinkfedilinkEnglisharrow-up1·2 months agoNo, she said “and if,” so that should be loaves += 12, so he should have returned with 13 loaves.
minus-squareA_norny_mousse@feddit.orglinkfedilinkEnglisharrow-up11arrow-down1·edit-22 months agoThanks for proving my point 😉
Thing with this joke that his me wrong is that isn’t how if statements are written. The else does not come before the condition in any language I’ve ever used or seen.
At the very least. It should be that he comes back with 1 or 13 loaves.
I see that as requiring an instruction of replacement, like buy a dozen instead.
No, she said “and if,” so that should be
loaves += 12, so he should have returned with 13 loaves.Thanks for proving my point 😉