Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
mseepgood
2y ago
0 comments
Share
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.
undefined | Better HN
0 comments
default
newest
oldest
avgcorrection
2y ago
You struggle to imagine a programmer passing a value of the wrong type to a function?
bb88
2y ago
Or passing a wrong value and the compiler allows it because the programmer trusted the compiler to "always do the right thing".
j
/
k
navigate · click thread line to collapse