this post was submitted on 04 Jul 2024
437 points (97.8% liked)

xkcd

8836 readers
160 users here now

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

founded 1 year ago
MODERATORS
 

Alt text:

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

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 4 months ago (4 children)

The python function is some sort of brainfuck?

[–] [email protected] 8 points 4 months ago* (last edited 4 months ago) (3 children)

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.

[–] [email protected] 3 points 4 months ago (1 children)

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.

[–] [email protected] 2 points 4 months ago (1 children)

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.

[–] [email protected] 2 points 4 months ago

People reading decompiled inlined code: "wait this isn't normal?"

load more comments (1 replies)
load more comments (1 replies)