4 ms·
Can you explain the thought process of a developer when they write 'performOperation(2)'? What do they believe '2' signifies in this context? I struggle to beli
by mseepgood 3y ago
Can you explain the thought process of a developer when they write 'performOperation(2)'? What do they believe '2' signifies in this context? I struggle to believe that this could occur by accident.
- avgcorrection 3y agoYou struggle to imagine a programmer passing a value of the wrong type to a function?
- bb88 3y agoOr passing a wrong value and the compiler allows it because the programmer trusted the compiler to "always do the right thing".