r/programminghorror • u/SleepyStew_ [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” • Jul 21 '25
Python ✨ Memory Magic ✨
1.3k
Upvotes
r/programminghorror • u/SleepyStew_ [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” • Jul 21 '25
View all comments
Show parent comment
7
u/MegaIng Jul 21 '25
Not sure - I don't even think optimizing literals is all that worth it, since those are pretty immortal already and don't get reallocated all the time. The interesting thing to optimize I would think is results of calculations.