840
you are viewing a single comment's thread
view the rest of the comments
[-] affiliate@lemmy.world 7 points 2 days ago

i will never forgive them for making the pointer type be T* instead of &T. most confusing thing ever.

don’t even get me started on C++ making T& the reference type and then making T&& be something other than the double reference type.

[-] xthexder@l.sw0.com 5 points 2 days ago

I always thought T&& made sense as a movable reference. In order to move something, you need to change where the reference points, so conceptually you need a reference to the original reference to update it. (Effectively a double reference)

this post was submitted on 19 Feb 2025
840 points (99.3% liked)

Programmer Humor

20033 readers
1541 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS