kiri@ani.social to Programmer Humor@programming.dev · edit-22 months agoC++ani.socialimagemessage-square87linkfedilinkarrow-up1801arrow-down115file-text
arrow-up1786arrow-down1imageC++ani.socialkiri@ani.social to Programmer Humor@programming.dev · edit-22 months agomessage-square87linkfedilinkfile-text
minus-squareGladaedlinkfedilinkarrow-up3arrow-down3·2 months agoIf you tell the Compiler to be careful and avoid writing c code c++ does not segfault. This is a user error. You can technically even write Assembler code and compile with gpp.
minus-squareT156@lemmy.worldlinkfedilinkEnglisharrow-up7·2 months agoDoes it count as user error if the user has to micromanage the compiler?
minus-squareGladaedlinkfedilinkarrow-up1·2 months agoYes. Unless you have a really good reasons there are safe and portable versions you should use instead.
If you tell the Compiler to be careful and avoid writing c code c++ does not segfault. This is a user error.
You can technically even write Assembler code and compile with gpp.
Does it count as user error if the user has to micromanage the compiler?
Yes. Unless you have a really good reasons there are safe and portable versions you should use instead.