Skip to content

Commit

Permalink
Add c'…' idea.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Nov 15, 2022
1 parent 9fdd8f1 commit b19d91a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions text/3348-c-str-literal.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ Interactions with string related macros:
# Unresolved questions
[unresolved-questions]: #unresolved-questions

- Also add `c'…'` as [`c_char`](https://doc.rust-lang.org/stable/core/ffi/type.c_char.html) literal?

It'd be identical to `b'…'`, except it'd be a `c_char` (`i8`) instead of `u8`.

- Should we make `&CStr` a thin pointer before stabilizing this? (If so, how?)

- Should the (unstable) [`concat_bytes` macro](https://github.com/rust-lang/rust/issues/87555) accept C string literals? (If so, should it evaluate to a C string or byte string?)

# Future possibilities
Expand Down

0 comments on commit b19d91a

Please sign in to comment.