• @calcopiritus
    link
    3
    edit-2
    4 hours ago

    This is literally a getter function. How is a getter awful code? It’s the simplest function there is. The only function simpler than that is returning the input itself.

    • @BrianTheeBiscuiteer
      link
      07 hours ago

      How does “foo” mean “get”? Half the battle of writing correct code is writing code that’s easy to interpret. Do you always look at the guts of every function you’re about to use?

      • @calcopiritus
        link
        24 hours ago

        It’s a one line function in an example. It’s a getter.