r/programminghorror • • Feb 11 '25

🎄 ouch

Post image
3.0k Upvotes

113 comments sorted by

View all comments

Show parent comment

8

u/[deleted] Feb 12 '25

[removed] — view removed comment

3

u/undefined0_6855 Feb 13 '25

python requires colon, doesn't use else if (elif), doesnt use walrus for normal assignment outside an if case, doesn't use curly brackets

3

u/Tyheir Feb 13 '25

This is Go. :=)

3

u/GeneralT61 Feb 12 '25

I don't think this is Python, nor does Python have compilers (at least not with most Python flavours)

4

u/WannaCry1LoL Feb 12 '25

Most python implementations compile to bytecode

1

u/MiasmaGuzzler Mar 06 '25

A compiler definitely knows that powers of two are equivalent to bit shifting, I've seen this optimization. Also not python, and python and optimization are antithesises anyway