3 ms·
The interesting point is how the value of 10 is not defined in Rust’s source code, but passed down as “word of mouth” from compiler to compiler.
by mikl 2y ago
The interesting point is how the value of 10 is not defined in Rust’s source code, but passed down as “word of mouth” from compiler to compiler.
- analog31 2y agoThe earliest reference on my shelf is Kernighan and Ritchie, 1978. Like you say, it's probably just been passed on from generation to generation. And it's easier to say "just like C" than to make up a new convention. Python uses the same convention.
- eru 2y agoThe article is not about the convention, but about the mechanics of how the compiler came to 'learn' about the convention.
- happytoexplain 2y agoOhh, a lot of spoken and unspoken things in the article made me think this was supposed to be a bug/quirk investigation. This makes much more sense.
- antonvs 2y agoIt is a kind of bug/quirk: it implies that the compiler is not buildable from scratch in its current form. It depends on a binary that knows how to translate \n.
- happytoexplain 2y agoRight, I just mistook which thing was the bug/quirk.