3 ms·
Any function can do anything. I can write a function called "read_from_file()" that doesn't read any files. Amazing, I know. Also please actually read the com
by norswap 10y ago
Any function can do anything. I can write a function called "read_from_file()" that doesn't read any files.
Amazing, I know.
Also please actually read the comment before replying:
> Operator overloading is nice, but has to be used tastefully.
- grey-area 10y agoThe point the OP made was that operator overloading is not nice - it means that any operator (not just function) can do anything. It makes code harder to read and reason about.