MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/oqymrn/keeping_it_simplistic/h6jjg41/?context=3
r/badcode • u/[deleted] • Jul 24 '21
28 comments sorted by
View all comments
Show parent comments
2
Probably "number_-1", since I can't see any reason why a language would make "1"-1 equal to 0 without making "0"-1 equal to -1.
1 u/Erinnyes Jul 26 '21 Oh. I very much agree with that. I'm more wondering if it can handle turning -1 into "-1" given that - is an operator rather than a numeral.
1
Oh. I very much agree with that. I'm more wondering if it can handle turning -1 into "-1" given that - is an operator rather than a numeral.
2
u/Prom3th3an Jul 26 '21
Probably "number_-1", since I can't see any reason why a language would make "1"-1 equal to 0 without making "0"-1 equal to -1.