6 ms·
Exactly. In other words, the post could have just continued with C++ and shown a better way to do it in the same language.
by greenfield1 3y ago
Exactly. In other words, the post could have just continued with C++ and shown a better way to do it in the same language.
- shakow 3y agoAnd maybe, just maybe, the guys knows Rust better than C++ and just want to take an example from their daily work rather than take every single precaution not to hurt the fragile sensibilities of HN reader unable to see the point if their life depended on it?
- pjmlp 3y agoThen they should have presented the case that way, instead of showing C like code and assuming there is no way to do that in C++.
- shakow 3y ago> Then they should have presented the case that way That's exactly what they did. > assuming there is no way to do that in C++ You are extrapolating things that are nowhere to be found in the article.
- pjmlp 3y agoC like code was presented as C++, while Rust code using an existing library was presented as something not available in C++ (type level programming).
- shakow 3y ago> C like code was presented as C++ Blame Arduino for their stdlib. > was presented as something not available in C++ You are putting things in the author's mouth, they never said that; only that it was not available in Arduino's stdlib.
- pjmlp 3y agoWhat about blame the author for their lack of C++ skills while selling Rust, and pretending otherwise?
- shakow 3y agoOnce again, you're reading a language war where there is none. Read the bloody article, it's all about the type system, not the language. Do you really expect the author to rewrite the Arduino stdlib for the sake of pjmlp's sensibility?
- pjmlp 3y agoI expect the author to actually learn C++ to start with. I survived the Usenet flamewars, there is no sensibility to hurt. Looking at the fellow comments the crowd shares a similar opinion on the article. Some food for thought.
- greenfield1 3y ago> > Then they should have presented the case that way > That's exactly what they did. You have read the article, right? It starts with showing how it looks like in C++ and then goes on with the revelation "In Rust on the other hand ...". Literally. This strongly suggests that what they are getting at is a language feature that sets Rust apart from C++.