Alt text:

’“‘”’” means “I edited this text on both my phone and my laptop before sending it”

  • marcos@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    4 months ago

    It’s a list with a tuple, with a list with an empty dictionary. I’m not sure the innermost parenthesis is legal there.

    Edit: Well, I tested it. It’s legal. {()} is just a set with an empty tuple instead of a dictionary.

    • GreyEyedGhost@lemmy.ca
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 months ago

      This sounds like something I would do with all of 40 hours or so of Python-esque programming under my belt. I feel like there has to be a better way, but it worked. I’m worried this might be the best way.

      • marcos@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        4 months ago

        Ouch. If you ever catches yourself writing something like this, stop. Intermediate values deserve names too. Even Haskell developers wouldn’t go into such extreme namelessness.