HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-22 days agoWhy make it complicated?lemmy.mlimagemessage-square114linkfedilinkarrow-up1361arrow-down136file-text
arrow-up1325arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-22 days agomessage-square114linkfedilinkfile-text
minus-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up4·2 days ago Good, now invent a keyword for variables you don’t want to declare the type. auto. Also in D, you only need const if you don’t want to specify a type for a constant, the compiler automatically inferres it to you. Function declarations can be easily decyphered from context, no problem.
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up1·21 hours agoMaybe that’s what the people developing spoken languages thought, while normalising conversations overdependent on context. But hey, now we have another comedic tool in anime.
auto
. Also in D, you only needconst
if you don’t want to specify a type for a constant, the compiler automatically inferres it to you.Function declarations can be easily decyphered from context, no problem.
Maybe that’s what the people developing spoken languages thought, while normalising conversations overdependent on context.
But hey, now we have another comedic tool in anime.