pasar.pts-ptn.net Layanan Informasi 17 Jam
Telp/Fax : 021-8762002, 8762003, 8762004, 87912360
HP/SMS : 081 1110 4824 27, 0812 9526 2009, 08523 1234 000, 0815 145 78119
WhatsApp : 0817 0816 486, 0812 9526 2009, 0815 145 78119
email : _Hubungi Kami__ silahkan klik
Chatting dengan Staf :
ggkarir.com
ggiklan.com
Pilih Bahasa :   ID   EN   Permintaan Katalog / Brosur (GRATIS via POS)   Kelas Karyawan   Reguler
Al Quran onlineEnsiklopedia DuniaRegulerRegulerKuliah KaryawanReferensi ICTJaringan WebsiteIlmuShellRDBMS (Sistem Database)Forum Agama Buddha

   
Cari  
    Komputer Sains

    Sebelumnya  (Comparison of programming lang ...) (Comparison of programming lang ...)  Berikutnya    

Perbandingan -- programming languages (strings)

Contents

Concatenation

Different languages use different symbols for the concatenation operator. Many languages use the "+" symbol, though several deviate from this.

Common variants

OperatorLanguages
+ALGOL 68, BASIC, C++, C#, Pascal, Object Pascal, Eiffel, Go, JavaScript, Java, Python, Turing, Ruby, Windows PowerShell, Objective-C, F#
++Haskell, Erlang
$+mIRC Scripting Language
&Ada, AppleScript, Curl, Seed7, VHDL, Visual Basic, Excel, FreeBASIC
nconcCommon Lisp
.Perl (before version 6), PHP, and Maple (up to version 5), Autohotkey
~Perl 6 and D
||Icon, Standard SQL, PL/I, Rexx, and Maple (from version 6)
<>Mathematica
..Lua
,J programming language, Smalltalk
^OCaml, Standard ML, F#, rc
//Fortran

Unique variants

  • Awk uses the empty string: two expressions adjacent to each other are concatenated. This is called juxtaposition. Unix shells have a similar syntax. Rexx uses this syntax for concatenation including an intervening space.
  • C allows juxtaposition for string literals, however, for strings stored as character arrays, the strcat function must be used.
  • MATLAB and Octave use the syntax "[x y]" to concatenate x and y.
  • Visual Basic Versions 1 to 6 can also use the "+" sign but, this leads to ambiguity if a string representing a number and a number is added together.
  • Microsoft Excel allows both "&" and the function "=CONCATENATE(X,Y)".

String literals

This section compares styles for declaring a string literal.

Quoted raw

SyntaxLanguage(s)
@"Hello, world!"C#, F#
"Hello, world!"Java, JavaScript, FreeBASIC
r"Hello, world!"Python
'Hello, world!'Pascal, Object Pascal, PHP, Perl, Windows PowerShell, JavaScript
`Hello, world!`Go, Smalltalk

Quoted interpolated

SyntaxLanguage(s)
"Hello, $name!"PHP, Perl, Windows PowerShell
"Hello, #{name}!"Ruby
(format t "Hello, ~A" name)Common Lisp

Escaped quotes

SyntaxLanguage(s)
"I said "Hello, world!""C, C++, C#, F#, Java, Ocaml, Python, JavaScript, Mathematica
"I said `"Hello, world!`""Windows Powershell
"I said ^"Hello, world!^""REBOL
"I said, %"Hello, World!%""Eiffel
 !"I said "Hello, world!""FreeBASIC

Dual quoting

SyntaxLanguage(s)
"I said ""Hello, world!"""Ada, ALGOL 68, Excel, Fortran, Visual Basic, FreeBASIC, COBOL
'I said ''Hello, world!'''Fortran, rc

Multiple quoting

SyntaxLanguage(s)
qq(I said "Hello, world!")Perl
 %Q(I said "Hello, world!")
 %(I said "Hello, world!")
Ruby
{I said "Hello, world!"}REBOL

Here document

SyntaxLanguage(s)
<<EOF
I have a lot of things to say
and so little time to say them
EOF
Perl, PHP, Ruby
@"
I have a lot of things to say
and so little time to say them
"@
Windows Powershell
"[
I have a lot of things to say
and so little time to say them
]"
Eiffel
"""
I have a lot of things to say
and so little time to say them
"""
CoffeeScript

Unique quoting variants

SyntaxVariant nameLanguage(s)
′I said ′′Hello, world!′′.′Double quotingSmalltalk
'I said ''Hello, world!''.'
Double quotingPascal, Object Pascal, SQL standard
"""Hello, world!"""Triple quotingPython
13HHello, world!Hollerith notationFortran 66
(indented with whitespace)Indented with whitespace and newlinesYAML
    Sebelumnya  (Comparison of programming lang ...) (Comparison of programming lang ...)  Berikutnya    





Tags: Comparison of programming languages (strings), Komputer Sains, 464, Perbandingan programming languages (strings) Programming language comparisons General comparison Basic syntax Basic instructions Arrays Associative arrays String operations String functions List comprehension Object oriented programming Object oriented constructors Database access Evaluation strategy Daftar/Tabel, Hello World, programs ALGOL 58's influence on ALGOL 60 ALGOL 60: Comparis, Comparison of programming languages (strings), Bahasa Indonesia, Contoh Instruksi, Tutorial, Referensi, Buku, Petunjuk pasar, pts-ptn.net
 Pendaftaran Online
 Download Brosur
 Permintaan Beasiswa
 Seluruh Literatur Bebas
 Bursa Karir
 Buku Manual
 Beragam Perdebatan
 Tips & Trik Psikotes
 Kuliah Reguler
 Program Kuliah Entrepreneur
 Kelas Tanpa Uang
 Perkuliahan Daring di 168 PTS Terbaik

 Quran Online
 Tips & Trik Psikotes
 Bermacam2 Pariwara
 Waktu Salat
Daftar manfaat sayuran, buah, herbal, Manfaat Jintan Hitam, Panen pertama Sirsak, dsb.
Menanam benih Delima

Beritahu Rekan
Nama Saya

Email Saya

Email Rekan 1

Email Rekan 2 (tidak wajib)

Email Rekan 3 (tidak wajib)
⚜ harus diisi dengan benar

Link2 Khusus
Pendidikan
PTS Tersohor & Terkenal
Sarjana, Diploma

Tautan Tambahan
silakan klik
Pusat Pengetahuan Bebas

uhamzah.web.id  |  usbm.web.id  |  p2k.staitbiasjogja.ac.id  |  p2k.stit-alhikmahwk.ac.id  |  p2k.stiperjember.ac.id