• ValiantDust@feddit.de
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    But are you gonna return something for this method??? You said you’d return an integer, yet there is no return statement!

    • gregorum@lemm.ee
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      3 months ago

      and it had better be an integer! it had better be an integer, motherfucker!!

    • sik0fewl@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      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.