Content deleted Content added
→Quoted interpolated: Remove confusing tautology |
Insertion of Rust cases. |
||
Line 65:
* [[Visual Basic]] Versions 1 to 6 can also use the "<code>+</code>" sign but, this leads to ambiguity if a string representing a number and a number is added together.
* [[Microsoft Excel]] allows both "<code>&</code>" and the function "<code>=CONCATENATE(X,Y)</code>".
*[[Rust (programming language)|Rust]] have the <code>[https://doc.rust-lang.org/std/macro.format.html concat!]</code> macro but no specific operator. Also, the <code>[https://doc.rust-lang.org/std/macro.format.html format!]</code> macro is more put forward throughout documentation and examples.
== String literals ==
Line 114 ⟶ 115:
|-
| <tt>"I said \"Hello, world!\""</tt>
| C, C++, C#, D, F#, Java, JavaScript, Mathematica, Ocaml, Perl, PHP, Python, Rust, Swift, Wolfram Language, Ya
|-
| <tt><nowiki>'I said \'Hello, world!\''</nowiki></tt>
Line 133 ⟶ 134:
| <tt>!"I said \"Hello, world!\""</tt>
| FreeBASIC
|-
|<tt>r#"I said "Hello, world!""#</tt>
|Rust (alternate)
|}
Line 174 ⟶ 178:
|-
| <tt>r"Hello, world!"</tt>
| Cobra, D, Python,
|-
| <tt>"Hello, world!"</tt>
|