EuAndreh@programming.dev to Programming@programming.dev · 18 hours agoMultiline comments in POSIX sheuandre.orgexternal-linkmessage-square18linkfedilinkarrow-up11file-text
arrow-up11external-linkMultiline comments in POSIX sheuandre.orgEuAndreh@programming.dev to Programming@programming.dev · 18 hours agomessage-square18linkfedilinkfile-text
minus-squareEuAndreh@programming.devOPlinkfedilinkarrow-up0·16 hours agoC89, AKA ANSI C famously only supports /* */, having // as a cross-pollinated idea from C++.
minus-squarethingsiplay@lemmy.mllinkfedilinkarrow-up0·15 hours agoGood example, at least historical. ;-) I wonder why they never added single line comments before. I mean it took them quite a long time to do so. Languages before 1960 even had single lines too.
C89, AKA ANSI C famously only supports
/* */, having//as a cross-pollinated idea from C++.Good example, at least historical. ;-) I wonder why they never added single line comments before. I mean it took them quite a long time to do so. Languages before 1960 even had single lines too.