JPDev@programming.dev to Programmer Humor@programming.dev · 8 months agoWhitespaceprogramming.devimagemessage-square54fedilinkarrow-up1287
arrow-up1277imageWhitespaceprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 8 months agomessage-square54fedilink
minus-squareGissaMittJobb@lemmy.mllinkfedilinkarrow-up65arrow-down2·8 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·8 months agoI also sometimes wish that the syntax in if statements was inverted, where () was optional and {} was required.
minus-squareCodex@lemmy.worldlinkfedilinkarrow-up10·8 months agoRust makes this choice and it is way better.
minus-squareBlackmist@feddit.uklinkfedilinkEnglisharrow-up6·8 months agoHaving assignments return a value is right up there as well.
minus-squareGissaMittJobb@lemmy.mllinkfedilinkarrow-up8·8 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.