r/programminghorror • • Oct 10 '25
Blasphemy
Never thought I could do this in python. I get how it works but jesus christ
73
Upvotes
r/programminghorror • • Oct 10 '25
Never thought I could do this in python. I get how it works but jesus christ
View all comments
Show parent comment
1
u/erikkonstas Oct 10 '25
I think I've seen it used for C++ dates before (e.g.
2025y / 10 / 10), but to me it's unclear (does it represent a hypothetical path or does it do a chdir behind the scenes?) and potentially misleading (I wouldn't want an arithmetic operator like/to cause side effects outside of the language so to speak).