this post was submitted on 08 Jun 2025
520 points (97.6% liked)

Programmer Humor

36340 readers
205 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 22 points 2 days ago (1 children)

Rust: Borrow handler got mad at you for asking

(I'd assume)

[–] drbluefall@toast.ooo 18 points 2 days 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 13 points 2 days ago

Don't forget Self, the type of self.