4 ms·
You thought I accused you of promoting rust. I didn’t. I said that someone who complains when rust is criticized in a conversation about c++ should complain equ
by alphanullmeric 3y ago
You thought I accused you of promoting rust. I didn’t. I said that someone who complains when rust is criticized in a conversation about c++ should complain equally when rust is promoted, which should not be a controversial statement if you have any consistency.
We are discussing a compile time string. So how can you use const fn to make a compile time string in rust with no macros?
- insanitybit 3y ago> I said that someone who complains when rust is criticized in a conversation about c++ should complain equally when rust is promoted Right, this is a straw man. I've never said anything at all about people criticizing C++ and promoting Rust. You're creating an argument out of thin air and attacking it. > We are discussing a compile time string. Incorrect. Here is what you said: > Much more than rust, that’s for sure, where you are forced to stick everything in a macro or pray the compiler is smart for compile time programming. In no way did you scope it to creating heap allocating strings. Even the post, which ultimately discusses that, discusses other things. For example, you can write a substr function (firstName) using a const fn in Rust. No macros, no "praying" that the compiler will optimize things. It would be very odd to limit the discussion to a `string` since this post focuses on how difficult and complex that is in C++, so using it as a "Rust can't even do this" would be sort of ironic. Anyways, I've engaged in good faith in this discussion for far too long. Your posts are borderline incoherent, frankly, and I think any reader of this thread will have long gotten the message that your initial post was both irrelevant and incorrect.
- alphanullmeric 3y agoI said “it’s not any weirder than promoting rust under discussions about c++”. That’s not claiming you said something about promoting rust, that’s asserting that if you have any consistency then you should find that weird as well. The title of the post asks how constexpr c++ strings are. I answered with “more than rust’s”. The existence of const fn has yet to prove me incorrect.