Hellfire103@lemmy.ca to Programmer Humor@lemmy.mlEnglish · 9 months agoDoes this exist anywhere outside of C++?lemmy.mlimagemessage-square54linkfedilinkarrow-up1175arrow-down10
arrow-up1175arrow-down1imageDoes this exist anywhere outside of C++?lemmy.mlHellfire103@lemmy.ca to Programmer Humor@lemmy.mlEnglish · 9 months agomessage-square54linkfedilink
minus-squareDigital Mark@lemmy.sdf.orglinkfedilinkEnglisharrow-up5·9 months agoIf you write to a text (as opposed to binary) stream, \n produces \n or \r\n (or \r if old enough) depending on platform just fine. Nobody should be using C++ anyway, but plenty of languages have silly system newline constants, which do nothing useful.
minus-squareMrScottyTay@sh.itjust.workslinkfedilinkEnglisharrow-up4·9 months agoWhy should no one be using c++?
If you write to a text (as opposed to binary) stream, \n produces \n or \r\n (or \r if old enough) depending on platform just fine.
Nobody should be using C++ anyway, but plenty of languages have silly system newline constants, which do nothing useful.
Why should no one be using c++?