kiri@ani.social to Programmer Humor@programming.dev · edit-29 个月前C++ani.socialimagemessage-square87linkfedilinkarrow-up1818arrow-down115file-text
arrow-up1803arrow-down1imageC++ani.socialkiri@ani.social to Programmer Humor@programming.dev · edit-29 个月前message-square87linkfedilinkfile-text
minus-squareGladaed@feddit.orglinkfedilinkarrow-up4arrow-down3·9 个月前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.
minus-squareT156@lemmy.worldlinkfedilinkEnglisharrow-up7·9 个月前Does it count as user error if the user has to micromanage the compiler?
minus-squareGladaed@feddit.orglinkfedilinkarrow-up1·9 个月前Yes. 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.