@kiri@ani.social to Programmer Humor@programming.dev • edit-28 days agoC++ani.socialimagemessage-square91fedilinkarrow-up1812arrow-down115
arrow-up1797arrow-down1imageC++ani.social@kiri@ani.social to Programmer Humor@programming.dev • edit-28 days agomessage-square91fedilink
minus-square@Gladaed@feddit.orglinkfedilink1•7 days 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-square@T156@lemmy.worldlinkfedilinkEnglish7•7 days agoDoes it count as user error if the user has to micromanage the compiler?
minus-square@Gladaed@feddit.orglinkfedilink1•6 days 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.