I have done multiple serious FFI projects in #rustlang and still make the `foo.to_c_str().as_ptr()` mistake. Such a footgun!
-
-
yes, please someone RFC this!
-
i actually really like c"foo"
-
I go back and forth on language constructs vs macros/functions.
-
i feel like this case may justfiy, maybe not though
-
ya for sure. It reads and feels nice
-
I think it's pretty justified, given how common interop with C is for Rust. And it "sticks out" 1/
-
so I don't think someone unfamiliar with the syntax would gloss over it 2/2
-
yeah I'm more like "ah but C semantics forever" but that's already true so
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.