• ck_@discuss.tchncs.de
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      Yeah, I tend to agree, naked returns are hard to read and they don’t really add much in terms of value.

      I avoid them in my code.

  • stifle867
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    You can usually restructure your code to avoid them and would suggest to do so where possible. In the same vein as GOTO being bad practice. It’s simpler being able to follow a function’s flow from top to bottom.