Alt text:

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

You are viewing a single thread.
View all comments
5 points

The python function is some sort of brainfuck?

permalink
report
reply
8 points
*

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.

permalink
report
parent
reply
3 points

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.

permalink
report
parent
reply
2 points

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.

permalink
report
parent
reply

xkcd

!xkcd@lemmy.world

Create post

A community for a webcomic of romance, sarcasm, math, and language.

Community stats

  • 1.7K

    Monthly active users

  • 176

    Posts

  • 1.2K

    Comments

Community moderators