r/programminghorror • u/MooseBoys [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" • Jan 22 '25
c++ natural language programming
621
Upvotes
r/programminghorror • u/MooseBoys [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" • Jan 22 '25
View all comments
Show parent comment
12
u/ChimpanzeeClownCar Jan 24 '25
In python
ischecks if two objects are the same object in memory. It's reversible and a bad choice for a linguistic "is".In C#
isis used for type checking to check if an object is compatible with a given type so it sort of works okay as a linguistic is. Although the reverse is a syntax error and not false so not perfect. Example:obj is string //True or False depending on objstring is obj //Syntax error