JPDev@programming.dev to Programmer Humor@programming.dev · 7 months agoWhitespaceprogramming.devimagemessage-square51fedilinkarrow-up1285arrow-down110
arrow-up1275arrow-down1imageWhitespaceprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 7 months agomessage-square51fedilink
minus-squareGissaMittJobb@lemmy.mllinkfedilinkarrow-up64arrow-down2·7 months agoHaving an asterisk both be the type indicator and the dereference operator is one of the great programming language design blunders of our time, along with allowing nulls for any type in so many languages.
minus-squaredarkpanda@lemmy.calinkfedilinkarrow-up19·7 months agoI also sometimes wish that the syntax in if statements was inverted, where () was optional and {} was required.
minus-squareCodex@lemmy.worldlinkfedilinkarrow-up10·7 months agoRust makes this choice and it is way better.
minus-squareBlackmist@feddit.uklinkfedilinkEnglisharrow-up6·7 months agoHaving assignments return a value is right up there as well.
minus-squareGissaMittJobb@lemmy.mllinkfedilinkarrow-up8·7 months agoBecause of the possibility of accidentally performing an assignment in a conditional expression? If yes, I agree that it’s not great.
Having an asterisk both be the type indicator and the dereference operator is one of the great programming language design blunders of our time, along with allowing nulls for any type in so many languages.
I also sometimes wish that the syntax in
if
statements was inverted, where()
was optional and{}
was required.Rust makes this choice and it is way better.
Based
Having assignments return a value is right up there as well.
Because of the possibility of accidentally performing an assignment in a conditional expression?
If yes, I agree that it’s not great.
Yeah, exactly that.