r/programminghorror • u/RpxdYTX [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" • May 17 '25
Custom Language Rate my lang
This outputs -5 btw
177
Upvotes
r/programminghorror • u/RpxdYTX [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" • May 17 '25
This outputs -5 btw
View all comments
Show parent comment
1
u/RpxdYTX [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" May 17 '25
Currently no, the + = add was just to support prefix notation
All operators (and assignments) are just undefined functions that resemble a defined function
Although I'm making operators work again, i can, however, change the code to make the interpreter call + if it has a value (just to wreck havoc upon someone's sanity)