News for hackers. Stuff that matters.
Re:in Rust, methods should be object safe by verandaguy on Saturday June 01, 2024 @04:50PM (#40548977)
Rust-specific nomenclature aside, I think it's useful in technical discussions to distinguish between (object) methods, class methods, and functions if your working language supports any combination of the three.

The word "method" is baked into the official Rust docs[0], and while I personally find the definition in the docs to be satisfying, I don't think the author's argument for narrowing that definition down is unreasonable or (more importantly) unworthy of discussion.

    [0] https://doc.rust-lang.org/rust-by-example/fn/methods.html

There are no comments on this comment yet.