• lemmyvore
    link
    fedilink
    English
    arrow-up
    4
    ·
    6 months ago

    Tbf it wasn’t so much the names that tripped me as the weird Python operator. I would’ve never guessed that’s a string reversal if you hadn’t told me (I don’t know much Python beyond recognizing the syntax). If I had to guess I would’ve said it’s an array pop.

    • WetBeardHairs@lemmy.ml
      link
      fedilink
      arrow-up
      7
      ·
      6 months ago

      When I originally typed it, I made a function for string reversal and called that. But I didn’t include it since I didn’t want to define that too.

      Honestly… this wiki has a seriously difficult path ahead of it. I mean - it’d be fantastic if it did simplify things like that to let you write simple, elegant, and easy to read functions while linking to other functions.

      But it’d also have to lint those and make sure that contributors don’t implement recursive dependencies.