r/ProgrammerHumor • • Sep 28 '26

Meme optionalsAreOptional

Post image
716 Upvotes

130 comments sorted by

View all comments

Show parent comment

4

u/GPSProlapse Sep 28 '26

Usually it is safe enough and faster to validate inputs than each step of the computation. In some languages, like c++, you can force that via types at zero or close to zero cost