Skip to content
Discussion options

You must be logged in to vote

Hi! Thanks for the proposal. Others are welcome to join in, but I will share my thoughts.

jank currently supports #cpp strings, such as #cpp "meow". However, this doesn't mean "A string containing C++ code". It means "A C++ literal string." For example:

(let [s #cpp "meow"] ; s is a char const [5]
  (println s))

We also support this for other primitive literals, such as #cpp 5, #cpp true, #cpp 3.14, etc. This allows jank users to work directly with C++ primitive types, rather than boxed jank objects.

So, given that knowledge, using #cpp for C++ strings would be inconsistent with the approach.

However, secondly, I think that #cpp within cpp/raw is also redundant. As we have seen in #24 (wh…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jeaye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants