Kotlin (programming language): Difference between revisions

Content deleted Content added
Removed unnecessary curly braces for string interpolation
Line 33:
 
== Syntax ==
Like [[Pascal programming language|Pascal]], [[Haxe]], F# and [[Scala (programming language)|Scala]], Kotlin [[Variable (computer science)|variable]] declarations and [[Parameter (computer programming)|parameter lists]] have the [[data type]] come after the variable name (and with a [[Colon (punctuation)|colon]] separator), unlike [[C language|C]] and its derivatives such as C++, Java, C#, and D. As in other modern languages like Scala and [[Groovy (programming language)|Groovy]], [[semicolon]]s are optional as a [[Statement (computer science)|statement]] [[Statement terminator#Statements|terminator]], in most cases a [[newline]] is sufficient for the [[compiler]] to deduce that the statement has ended.<ref>{{cite web | url=http://confluence.jetbrains.com/display/Kotlin/Grammar#Grammar-Semicolons | title=Semicolons | website=jetbrains.com | accessdate=February 8, 2014}}</ref>
 
== Semantics ==