cm0002@lemmy.world to Programmer Humor@programming.dev · 6 hours agoLow effort memelemmy.worldimagemessage-square10fedilinkarrow-up155arrow-down14cross-posted to: programmerhumor@lemmy.ml
arrow-up151arrow-down1imageLow effort memelemmy.worldcm0002@lemmy.world to Programmer Humor@programming.dev · 6 hours agomessage-square10fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up15·5 hours agoI don’t get it. What’s wrong with constexpr? It’s vastly preferable to macros due to type safety, and const due to compile-time optimization.
minus-squareRustyNova@lemmy.worldlinkfedilinkarrow-up5·5 hours agoI don’t get it either. OP might be angry at compile time (Couldn’t be worse than rust)
minus-squareanton@lemmy.blahaj.zonelinkfedilinkarrow-up1·4 hours agoRust doesn’t allow type inference in function signatures, c++ does with auto. IIRC, they recommended against using it, because of -you guessed it- compile time.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up2·3 hours agoYeah, Rust already has major compile time issues.
minus-squareRustyNova@lemmy.worldlinkfedilinkarrow-up1·3 hours agoTBH I thought it was for refactoring type safety. Making sure that the type is understood and not ready to just change wildly accidentally.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up1·3 hours agoI thought that was part of the point - simplifying refactoring.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up1arrow-down1·4 hours agoNot fair to compare it to the very immature Rust.
minus-squareRustyNova@lemmy.worldlinkfedilinkarrow-up2·3 hours agoI do love rust. But I do like making fun of it too. Although I don’t see how rust is immature? Unless I missed the joke?
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up1arrow-down1·3 hours agoIt’s very young for a programming language, and is still rapidly evolving.
I don’t get it. What’s wrong with constexpr? It’s vastly preferable to macros due to type safety, and const due to compile-time optimization.
I don’t get it either. OP might be angry at compile time (Couldn’t be worse than rust)
Rust doesn’t allow type inference in function signatures, c++ does with auto. IIRC, they recommended against using it, because of -you guessed it- compile time.
Yeah, Rust already has major compile time issues.
TBH I thought it was for refactoring type safety. Making sure that the type is understood and not ready to just change wildly accidentally.
I thought that was part of the point - simplifying refactoring.
Not fair to compare it to the very immature Rust.
I do love rust. But I do like making fun of it too.
Although I don’t see how rust is immature? Unless I missed the joke?
It’s very young for a programming language, and is still rapidly evolving.