3 ms·
Zig has a nice solution for that: https://ziglang.org/documentation/master/#Global-Assembly https://ziglang.org/documentation/master/#Global-Assembly The "mag
by klyrs 6y ago
Zig has a nice solution for that:
https://ziglang.org/documentation/master/#Global-Assembly https://ziglang.org/documentation/master/#Global-Assembly
The "magic" being that lines beginning with double-backslashes are string literals.
- masklinn 6y agoThat's a solution in none of the ways GP asks about. It's just a different syntax for a string literal, the entire point of the original comment is why string literals. > The "magic" being that lines beginning with double-backslashes are string literals. So… strictly worse than rust which allows linebreaks inside string literals, and thus only require a dquote before and one after the entire block instead of a two-char prefix before each line?