Heavy key words
type declares a course
perform begins a do/while circle (cycle with postcondition)
also identifies the department of an if expression that’s performed as soon as the circumstances was incorrect
fake points out the ‘false’ value of the Boolean form
determine the object are iterated in a concerning circle
is employed as an infix owner to test that an advantage belongs to a variety, an assortment or some other entity that determine the ‘contains’ way
is employed in whenever expression for the same purpose
marks a type factor as contravariant
can be used as an operator to check out that a value cannot are members of a variety, a variety or another entity that describes the ‘contains’ strategy
can be used in as soon as expressions for the same mission
program reports an user interface
is employed in if construction for similar goal
is employed in whenever expression for a similar mission
nothing are a continual stage a subject research it doesn’t point to any item
true determine the ‘true’ property value the Boolean type
typealias reports a kind alias
typeof reserved for long-term use
val declares a read-only belongings or local varying
var declares a mutable residence or nearby varying
once starts a whenever concept (executes various furnished branches)
while starts ages trap (hook with prerequisite)
Soothing key phrases
This tokens act as key words from inside the setting after being pertinent that can also be used as identifiers various other contexts:
active records a dynamic input Kotlin/JS rule
advantages aided by the classroom keyword reports an inline class
Modifier keywords and phrases
Listed here tokens behave as keywords in modifier lists of conditions and certainly will be utilized for identifiers in other contexts:
real denotes a platform-specific implementation in multiplatform works
conceptual mark a course or representative as abstract
annotation reports an annotation school
friend declares a spouse object
const spots real estate as a compile-time consistent
enum declares an enumeration
hope mark an announcement as platform-specific, expecting an execution in platform modules.
external markings an affirmation as put in place definitely not in Kotlin (easily accessible through JNI or perhaps in JavaScript)
infix brings dialing a features in infix writing
internal makes writing about the outer class example from a nested school
interior spots a resolution as apparent in the current module
out scars a kind factor as covariant
override mark a part as a supersede of a superclass manhood
general public scratches a testimony as obvious anyplace
reified scars a type parameter of an inline be easily accessible at runtime
enclosed declares an enclosed class (a category with limited subclassing)
suspend marks a function or lambda as suspending (usable as a coroutine)
tailrec mark a function as tail-recursive (enabling the compiler to displace recursion with iteration)
Specific identifiers
The following identifiers tends to be described from the compiler in particular contexts and that can be used as standard identifiers in other contexts:
field can be used inside a house accessor to refer with the support niche from the property
Operators and specialized signs
Kotlin helps in this article providers and specialized signs:
&& , || , ! – logical ‘and’, ‘or’, http://hookupdate.net/it/android-it ‘not’ providers (for bitwise businesses, need corresponding infix services)
== , != – equality employees (interpreted to phone calls of equals() for non-primitive sort)
, > , , >= – evaluation employees (translated to messages of compareTo() for non-primitive kinds)
[ , ] – indexed accessibility manager (translated to messages of access and set )
?. does a secure label (refers to one way or accesses real estate if the receiver are non-null)
?: gets the right-hand advantages if the left-hand benefits is actually null (the elvis manager)
: separates a name from a sort in declarations
? represents a sort as nullable
separates the guidelines and the entire body of a lambda appearance
separates the details and generate type declaration in a work form
separates the problem and body of a whenever manifestation division
introduces or mention a cycle tag
highlights or sources a lambda name
; divides a number of claims about the same series
$ records a variable or term in a chain theme
replacements an empty vardeenhet in a lambda manifestation
substitutes an empty quantity in a destructuring testimony