io@piefed.blahaj.zone to Microblog Memes@lemmy.worldEnglish · 1 month agohardest problempiefed.cdn.blahaj.zoneimagemessage-square77linkfedilinkarrow-up1918arrow-down116file-text
arrow-up1902arrow-down1imagehardest problempiefed.cdn.blahaj.zoneio@piefed.blahaj.zone to Microblog Memes@lemmy.worldEnglish · 1 month agomessage-square77linkfedilinkfile-text
minus-squareLuxyr@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up5arrow-down2·1 month 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·1 month agoloaves = 1 if (eggs) loaves = 12
minus-squareLuxyr@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up4arrow-down1·1 month agoI see that as requiring an instruction of replacement, like buy a dozen instead.
minus-squareMountainaire@lemmy.worldlinkfedilinkEnglisharrow-up1·1 month 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-21 month 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 😉