Jonathan ‘theJPster’ Pallant
https://github.com/rust-lang/rust/pull/117472
Soon you will be able to write c"Hello" in rust and get a valid UTF-8 encoded *NUL-terminated* string. This is amazing for people who work with C APIs.
@thejpster I'm conflicted about this. Sure it's nice ergonomics, but `cstr!(...)` wasn't that bad, and it feels like it's giving a foreign language construct more weight in the language than it should have. Yeah it's used widely, but so is `hexlit!(...)`, and where do we stop.
@thejpster that's very cool!
@thejpster “you’re only encouraging them”