Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 7 months agoUnused variablessh.itjust.worksimagemessage-square38fedilinkarrow-up1672arrow-down114
arrow-up1658arrow-down1imageUnused variablessh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 7 months agomessage-square38fedilink
minus-squareValiantDust@feddit.delinkfedilinkarrow-up64arrow-down1·7 months agoBut are you gonna return something for this method??? You said you’d return an integer, yet there is no return statement!
minus-squaregregorum@lemm.eelinkfedilinkEnglisharrow-up34arrow-down1·edit-27 months agoand it had better be an integer! it had better be an integer, motherfucker!!
minus-squareporous_grey_matter@lemmy.mllinkfedilinkarrow-up17·edit-27 months agoWell yea… If you write “return <object of some other type>” that is actually wrong, as opposed to just not having gotten around to filling it in yet
minus-squaresik0fewl@lemmy.calinkfedilinkarrow-up14arrow-down1·7 months agoThis is why I always write my methods from bottom to top. This way I’ve always got a return statement and I use my variables before they are even declared.
minus-squareN0tTheBees@sh.itjust.workslinkfedilinkarrow-up1·7 months agoAh an avid dreambird user I see
minus-squarebitcrafter@programming.devlinkfedilinkarrow-up1·7 months agoSpotted the INTERCAL programmer.
But are you gonna return something for this method??? You said you’d return an integer, yet there is no return statement!
and it had better be an integer! it had better be an integer, motherfucker!!
Well yea… If you write “return <object of some other type>” that is actually wrong, as opposed to just not having gotten around to filling it in yet
This is why I always write my methods from bottom to top. This way I’ve always got a return statement and I use my variables before they are even declared.
Ah an avid dreambird user I see
Spotted the INTERCAL programmer.