@HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish • edit-214 hours agoWhy make it complicated?lemmy.mlimagemessage-square73fedilinkarrow-up1253arrow-down10file-textcross-posted to: programmerhumor@lemmy.ml
arrow-up1253arrow-down1imageWhy make it complicated?lemmy.ml@HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish • edit-214 hours agomessage-square73fedilinkfile-textcross-posted to: programmerhumor@lemmy.ml
minus-square@calcopiritus@lemmy.worldlinkfedilink13•11 hours agoIt’s also valid rust syntax. But if it were rust, this meme would not make sense, since you would just type let a and type inference would do its thing. Which is much more ergonomic.
minus-squareVictorlinkfedilink1•46 minutes agoType inference is a pretty big thing in TypeScript as well though. In fact it’s probably the biggest thing about it, IMO.
minus-square@nebeker@programming.devlinkfedilinkEnglish4•10 hours agolet a = String::from(“Hello, world!”).into() I’ll see myself out.
It’s also valid rust syntax.
But if it were rust, this meme would not make sense, since you would just type
let a
and type inference would do its thing. Which is much more ergonomic.Type inference is a pretty big thing in TypeScript as well though. In fact it’s probably the biggest thing about it, IMO.
let a = String::from(“Hello, world!”).into()
I’ll see myself out.