merari42@lemmy.world to Programmer Humor@programming.dev · 2 years agoI want a programming language that supports German style composite wordslemmy.worldexternal-linkmessage-square127linkfedilinkarrow-up1865arrow-down17
arrow-up1858arrow-down1external-linkI want a programming language that supports German style composite wordslemmy.worldmerari42@lemmy.world to Programmer Humor@programming.dev · 2 years agomessage-square127linkfedilink
minus-squareaffiliate@lemmy.worldlinkfedilinkarrow-up7·2 years agoi 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.
minus-squarexthexder@l.sw0.comlinkfedilinkarrow-up5·2 years agoI 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)
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 makingT&&be something other than the double reference type.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)