HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-23 months agoWhy make it complicated?lemmy.mlimagemessage-square22linkfedilinkarrow-up1152arrow-down111file-textcross-posted to: programmerhumor@lemmy.ml
arrow-up1141arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-23 months agomessage-square22linkfedilinkfile-textcross-posted to: programmerhumor@lemmy.ml
minus-squaremasterspace@lemmy.calinkfedilinkEnglisharrow-up17·3 months agoYeah, it’s explicitly distinct from const a: String which says it won’t change, and var a: String, which means this is legacy code that needs fixing.
minus-squarePsaldorn@lemmy.worldlinkfedilinkarrow-up5·3 months agoIf there’s only two options you only need one keyword
Yeah, it’s explicitly distinct from
const a: String
which says it won’t change, andvar a: String
, which means this is legacy code that needs fixing.If there’s only two options you only need one keyword