cm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agoInfallible Codefeddit.ukimagemessage-square54fedilinkarrow-up1275arrow-down118
arrow-up1257arrow-down1imageInfallible Codefeddit.ukcm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agomessage-square54fedilink
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up2·2 days agoI didn’t get this. Why return book? Does that have some Blizzard reference? And why would number == 2 ⇒ return false? This is a function for getting true when the number is even, right?
minus-squareEbber@lemmings.worldlinkfedilinkarrow-up10·edit-22 days agoHaha, you’re right. I’ve now learned two things: I should not write code on a mobile I should not become a proof reader At the end of the day i just wanted the function to be worse, by causing stack overflows
I didn’t get this.
Why return
book
? Does that have some Blizzard reference?And why would
number == 2
⇒return false
? This is a function for gettingtrue
when the number is even, right?Haha, you’re right. I’ve now learned two things:
At the end of the day i just wanted the function to be worse, by causing stack overflows