this post was submitted on 08 Jun 2025
418 points (97.5% liked)

Programmer Humor

36253 readers
1049 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 19 points 14 hours ago (1 children)

Rust: Borrow handler got mad at you for asking

(I'd assume)

[–] drbluefall@toast.ooo 16 points 14 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 13 hours ago

Don't forget Self, the type of self.