Pure Programmer
Blue Matrix


Cluster Map

Comparison of Language Syntax

FeatureC++JavaJavaScriptPerlPythonSwift
CompiledYesYesNoNoNoYes
InterpretedNoYesYesYesYesNo
Source Code File Extension.cpp.java.js.pl.py.swift
End-of-Statementsemi-colonsemi-colonsemi-colonsemi-colonnew linenew line (semi-colon optional)
Multiple Statements per LineYesYesYesYesSometimesYes
printcout & <<System.out.print()printprintf()print(String, terminator: "")
print with new linecout & endlSystem.out.println()console.log()print & "\n"printprint()
printfprintf()System.out.printf()console.log()printfprint & %
printf()
print(String(format: String, arg...))
output objectcout & <<.toString()console.dir()Dumper()dump()
Boolean TypeboolbooleanBoolean(scalar)N/ABool
Boolean Literalstrue/falsetrue/falsetrue/falsetrue/falseTrue/Falsetrue/false
Truth Valuenon-falsyBoolean onlynon-falsynon-falsynon-falsyBoolean only
Byte TypecharbyteN/AN/AN/AInt8
Char Typechar or wchar_tcharN/AN/AN/ACharacter
Character Literalssingle quotessingle quotesN/AN/AN/AN/A
Char SetASCIIUnicodeUnicodeUnicodeUnicodeUnicode
Integers
(32-bit)
intintN/A(scalar)intInt32
Long Integers
(64-bit)
longlongN/AN/AN/AInt64
Floating PointdoubledoubleNumber(scalar)floatDouble
String Typestring or wstringStringString(scalar)strString
String Literalsdouble quotesdouble quotessingle or double quotessingle or double quotessingle or double quotesdouble quotes
Variable Interpolation within StringsNoNoNoYes (double quotes only)NoYes
IdentifiersASCII alphabetic, digits, underscoreUnicode alphabetic, digits, underscore, dollar signUnicode alphabetic, digits, underscore, dollar signASCII alphabetic, digits, underscoreASCII alphabetic, digits, underscoreUnicode alphabetic, digits, underscore
Hexadecimal Escape\x## or \u#### or \U########\u####\u####\x## or \x{####}\x## or \u####\u{####}
Constant Declaration Keywordconst (typename)final static (typename)constN/AN/Alet
Variable Declaration Keyword(typename)(typename)varmy/ourN/Avar
Assignment======
String Concatenation+++.++
Equivalence======== (numeric)
eq (string)
====
!=!=!=!= (numeric)
ne (string)
!=!=
<<<<< (numeric)
lt (string)
<<
<=<=<=<= (numeric)
le (string)
<=<=
>>>>> (numeric)
gt (string)
>>
>=>=>=>= (numeric)
ge (string)
>=>=
cppjavajsplpyswift
cppjavajsplpyswift
cppjavajsplpyswift
cppjavajsplpyswift
cppjavajsplpyswift
cppjavajsplpyswift
cppjavajsplpyswift
cppjavajsplpyswift
cppjavajsplpyswift

  • Defined in utils.py