Search phrases and providers. These tokens become keyword phrases in modifier databases of declarations and can be used as identifiers various other contexts:

Search phrases and providers. These tokens become keyword phrases in modifier databases of declarations and can be used as identifiers various other contexts:

Much search phrases

This tokens will always be translated as key phrases and can’t be utilized for identifiers:

lessons declares a category

carry out starts a do/while program (circle with postcondition)

else specifies the part of an if concept which happens to be accomplished whenever the condition are incorrect

false determine the ‘false’ worth of the Boolean kind

determine the item becoming iterated in a concerning hook

is employed as an infix owner to take a look that a value is assigned to a range, a variety or some other business that identifies the ‘contains’ system

is utilized in if expression for the same intent

markings a sort factor as contravariant

can be used as a manager to test that an advantages cannot fit in with a variety, a collection or any other organization that specifies the ‘contains’ means

is employed in when expressions for a similar intent

software reports an interface

can be used in when expression for the very same intent

is used in if expression for a similar intent

null happens to be a consistent representing a subject referral that does not indicate any subject

accurate points out the ‘true’ value of the Boolean sort

typealias reports a type alias

typeof reserved for foreseeable utilize

val declares a read-only home or hometown varying

var declares a mutable homes or neighborhood varying

once begins an any time term (performs a provided branches)

while begins months program (trap with precondition)

Soft keywords

In this article tokens behave as keyword within the situation while they are applicable and that can be used as identifiers various other contexts:

dynamic mention an active key in Kotlin/JS signal

price making use of the type search phrase reports an inline class

Modifier keywords and phrases

actual means a platform-specific execution in multiplatform jobs

abstract scars a category or manhood as theoretical

annotation declares an annotation course

companion declares a spouse item

const markings a residential property as a compile-time consistent

enum declares an enumeration

count scars a declaration as platform-specific, wanting an execution in platform components.

exterior mark a testimony as implemented maybe not in Kotlin (available through JNI or in JavaScript)

infix enables phoning a features in infix writing

inside grants speaking about the outside course example from a nested lessons

internal marks a statement as noticeable in the current module

out markings a kind factor as covariant

override marks an associate as an override of a superclass manhood

general public scratches a resolution as obvious wherever

reified spots a type vardeenhet of an inline function as easily accessible at runtime

closed declares an enclosed lessons (a class with confined subclassing)

suspend spots a purpose or lambda as suspending (usable as a coroutine)

tailrec scars a be tail-recursive (permitting the compiler to replace recursion with version)

Special identifiers

These identifiers happen to be characterized from the compiler in specific contexts might be used as standard identifiers some other contexts:

niche is utilized inside a home accessor to mention with the supporting area regarding the belongings

Employees and specialized symbols

Kotlin holds here employees and particular designs:

&& , https://www.hookupdate.net/bbw-dating/ || , ! – logical ‘and’, ‘or’, ‘not’ workers (for bitwise functions, use related infix operates)

== , != – equivalence workers (translated to calls of equals() for non-primitive sort)

, > , , >= – evaluation employees (render to telephone calls of compareTo() for non-primitive kinds)

[ , ] – listed connection agent (translated to contacts of take and place )

?. runs a safe phone call (phone calls a technique or accesses a property when receiver try non-null)

?: will take the right-hand price when left-hand appreciate try null (the elvis manager)

: classify a name from a kind in declarations

? represents a sort as nullable

sets apart the boundaries and the body of a lambda phrase

sets apart the criteria and return sort testimony in a function kinds

sets apart the condition and the entire body of an any time manifestation division

introduces or recommendations a cycle label

introduces or sources a lambda label

; stands between multiple records for a passing fancy series

$ mention a changeable or appearance in a line layout

replacements an empty vardeenhet in a lambda concept

substitutes an unused factor in a destructuring announcement