3 ms·
Someone on X suggested to make it logically reverse, so true would be false and visa versa. We can go ahead and make + behave as - and similarly for other oper
by SirusCodes 2y ago
Someone on X suggested to make it logically reverse, so true would be false and visa versa.
We can go ahead and make + behave as - and similarly for other operators.
- wging 2y agoDo you want to lie to your users, or do you just want to use unconventional operators? If the latter, you could consider using something like ruby's `unless`. (the number of times I've noticed code that does `unless !some_condition`... which is of course just the same thing as `if some_condition`)
- SirusCodes 2y agoMakes sense; I need to think about which would be better.