this post was submitted on 08 Jun 2025
391 points (97.3% liked)

Programmer Humor

36257 readers
1025 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Natanox@discuss.tchncs.de 18 points 8 hours ago (1 children)

Rust: Borrow handler got mad at you for asking

(I'd assume)

[–] drbluefall@toast.ooo 16 points 8 hours ago (1 children)

It's either a reference to an object instance, or the instance itself (depending on whether you specified &mut self, &self or just self).

[–] ferric_carcinization@lemmy.ml 11 points 7 hours ago

Don't forget Self, the type of self.