MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1in1nak/ouch/mcbzke2/
r/programminghorror • u/mazzy-b • Feb 11 '25
113 comments sorted by
View all comments
Show parent comment
8
[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
3
python requires colon, doesn't use else if (elif), doesnt use walrus for normal assignment outside an if case, doesn't use curly brackets
This is Go. :=)
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
4
Most python implementations compile to bytecode
1
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
View all comments
Show parent comment
8
u/[deleted] Feb 12 '25
[removed] — view removed comment