3 ms·
Many languages that are not primarily object-oriented. E.g. it was proposed in Rust [1]. It could also be added to many other functional languages, as often the
by tomp 12y ago
Many languages that are not primarily object-oriented. E.g. it was proposed in Rust [1]. It could also be added to many other functional languages, as often the "object-oriented" function call syntax looks more natural (when the first parameter is "special", the object of the call) than the "mathematical" function call syntax (appropriate for when parameters are equivalent, e.g. `max()` or `dot_product()`).
[1] https://mail.mozilla.org/pipermail/rust-dev/2013-October/006034.html https://mail.mozilla.org/pipermail/rust-dev/2013-October/006...