|
|
|
|
|
by runarberg
4234 days ago
|
|
When you think in types rather then objects it makes more sense. Or at least I think `+(u, v)` or `u + v`, is more natural then `u.plus(v)` or `u.+(v)` I the former case u and v are of numeric types that fulfil some numeric properties, so no interfaces are necessary, they are implied. |
|
I definitely agree with that, I said that object.method() style is often more natural. Typically when you have an object with some internal state and you want to send a message to it that will change its state. For example: threadPool.run(command) feels more natural than run(thread_pool, command).