this post was submitted on 19 Feb 2025
835 points (99.2% liked)

Programmer Humor

20735 readers
1983 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 7 points 2 days ago (1 children)

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.

[–] [email protected] 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)