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