3 ms·
Programmer: "The bug is in the choice of data type. Use unsigned ints to index arrays." Computer scientist: "The bug is in the language. Signed integer overflo
by CamperBob2 9y ago
Programmer: "The bug is in the choice of data type. Use unsigned ints to index arrays."
Computer scientist: "The bug is in the language. Signed integer overflow behavior should have been defined in such a way as to guarantee correct functionality in cases such as this."
Me: "Use int64s for this sort of thing. It's still broken, but I'll be retired or dead before anyone notices."
Engineer: "The bug is in the documentation. The program is correct but should have been specified for use with element counts no greater than INT_MAX / 2."
Mathematician: "A solution exists."
Manager: "Ship it."
- kazinator 9y agoMathematician: "I conjecture that a solution exists."