cm0002@lemmy.world to Programmer Humor@programming.dev · 21 hours agounsafeCodelemmy.mlimagemessage-square10fedilinkarrow-up1207arrow-down111cross-posted to: [email protected]
arrow-up1196arrow-down1imageunsafeCodelemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 21 hours agomessage-square10fedilinkcross-posted to: [email protected]
minus-squareesa@discuss.tchncs.delinkfedilinkarrow-up14·17 hours ago>What is C++? A miserable huge pile of "should"s
minus-squareriodoro1@lemmy.worldlinkfedilinkarrow-up2·16 hours agoshould have a space after „>” and two new lines after „?”. I guess markdown is miserable as well.
minus-squareColonel Panic@programming.devlinkfedilinkarrow-up2·9 hours agonot being able to master markdown might hint at why the commenter is struggling with C++
minus-squarekboy101222linkfedilinkEnglisharrow-up4·15 hours agoHey now, markdown serves it’s purpose. It’s not great, but as a web dev, I don’t want people expecting full WYSIWYG editors in every website cause fuck that!
minus-squareLucy :3@feddit.orglinkfedilinkarrow-up1·edit-217 hours agoStill love it tho. You can make it whatever you want!
minus-squareKwdg@discuss.tchncs.delinkfedilinkarrow-up23arrow-down1·20 hours agoNot needed, main in C++ implicitly returns 0 if there is no return
minus-squareLucy :3@feddit.orglinkfedilinkarrow-up8arrow-down7·20 hours agoShould ≠ Needs to You can do it, and it will work, but it’s unclean and not best-practice. I wouldn’t be surprised if it’s undefined behaviour.
minus-squarexmunklinkfedilinkarrow-up19·19 hours agoJust to clarify. It is defined behavior - there’s plenty of undefined behavior in C but that ain’t one of them.
Should return 0;.
>What is C++? A miserable huge pile of "should"s
Love me some Castlevania++
should have a space after „>” and two new lines after „?”.
I guess markdown is miserable as well.
not being able to master markdown might hint at why the commenter is struggling with C++
Hey now, markdown serves it’s purpose. It’s not great, but as a web dev, I don’t want people expecting full WYSIWYG editors in every website cause fuck that!
Still love it tho. You can make it whatever you want!
Not needed, main in C++ implicitly returns 0 if there is no return
Should ≠ Needs to
You can do it, and it will work, but it’s unclean and not best-practice. I wouldn’t be surprised if it’s undefined behaviour.
Just to clarify. It is defined behavior - there’s plenty of undefined behavior in C but that ain’t one of them.