Content deleted Content added
Jerryobject (talk | contribs) m Cut needless carriage return WP:LISTGAP between items. WP:LINKs: update-standardizes, needless WP:PIPEs > WP:NOPIPEs, underscore > space, adds. |
|||
Line 8:
===Common variants===
{| class="wikitable"
|-
Line 15 ⟶ 14:
|-
| +
| [[ALGOL 68]], [[
|-
| ++
| [[Erlang (programming language)|Erlang]], [[
|-
| $+
| [[
|-
| &
| [[Ada (programming language)|Ada]], [[AppleScript]], [[COBOL]] (for literals only), [[Curl (programming language)|Curl]], [[FreeBASIC]], [[Microsoft Excel|Excel]], [[Nim (programming language)|Nim]], [[Seed7]], [[VHDL]], [[Visual Basic]], [[Visual Basic .NET]]
|-
| concatenate
Line 30 ⟶ 29:
|-
| .
| Autohotkey, [[Maple
|-
| ~
| [[D (programming language)|D]], [[Raku (programming language)|Raku]], [[Symfony]] (Expression Language component)
|-
| <nowiki>||</nowiki>
| [[Icon (programming language)|Icon]], [[Maple
|-
| <>
Line 42 ⟶ 41:
|-
| ..
| [[Lua (programming language)|Lua]]
|-
| :
Line 48 ⟶ 47:
|-
| ,
| [[APL (programming language)|APL]], [[J (programming language)|J]], [[Smalltalk]]
|-
| ^
Line 62 ⟶ 61:
===Unique variants===
* [[
* [[C (programming language)|C]] (along with Python) allows juxtaposition for string literals, however, for strings stored as [[Character (computing)|character]] [[Array data structure|arrays]], the <code>[[strcat]]</code> function must be used.
* [[COBOL]] uses the <code>STRING</code> statement to concatenate string variables.
* [[MATLAB]] and [[GNU Octave
* [[Visual Basic]] and [[Visual Basic .NET]] can also use the "<code>+</code>" sign but at the risk of ambiguity if a string representing a number and a number are together.
* [[Microsoft Excel]] allows both "<code>&</code>" and the function "<code>=CONCATENATE(X,Y)</code>".
Line 100 ⟶ 99:
|-
| <code>(format nil "Hello, ~A" name)</code>
|[[Common Lisp]]
|-
| <code>`Hello, ${name}!`</code>
Line 251 ⟶ 250:
"</pre>
| {{No}}
|[[Common Lisp]] (all strings are multiline), Rust (all strings are multiline), Visual Basic .NET (all strings are multiline)
|-
| <pre>r"
|