• @ck_@discuss.tchncs.de
      link
      fedilink
      46 months 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@programming.dev
    link
    fedilink
    26 months 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.