zlacker

[parent] [thread] 0 comments
1. Mond_+(OP)[view] [source] 2025-12-05 20:29:11
Meh, you also see algorithms that have subtle bugs because the author assumed that for every integer x, -x has the same absolute value and opposite sign.

I view both of these as not great. If you strictly want to rely on wraparound behavior, ideally you specify exactly how you're planning to wrap around in the code.

[go to top]