r/programminghorror • u/RpxdYTX [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" • Mar 20 '26
Rust Yes i code like this
0
Upvotes
r/programminghorror • u/RpxdYTX [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" • Mar 20 '26
View all comments
Show parent comment
13
u/veryusedrname Mar 21 '26
What you are seeing here is a macro definition and invocation and macros are their own little languages, this is not everyday Rust, heck, on the invocation side everything and anything goes, you are free to invent your own DSL.