Key words and workers. This tokens are normally construed as key phrases and cannot be used as identifiers
Rough keywords and phrases
lessons reports a category
do starts a do/while circle (circle with postcondition)
also describes the side of an if concept and that’s accomplished if the problem was bogus
bogus specifies the ‘false’ property value the Boolean kinds
specifies the object getting iterated in an about program
is utilized as an infix agent to check out that a price belongs to a selection, a series or another organization that identifies the ‘contains’ technique
is employed in if construction for a similar mission
scars a type factor as contravariant
can be used as an agent to test that an importance doesn’t are part of a selection, a collection or any other thing that describes the ‘contains’ means
is used in if construction for the very same intent
screen declares a program
is used in once expressions for a similar goal
can be used in if expressions for a similar purpose
nothing is definitely a constant stage a subject referral that does not point out any target
genuine points out the ‘true’ valuation of the Boolean type
typealias declares a sort alias
typeof restricted to long-term make use of
val reports a read-only homes or neighborhood adjustable
var declares a mutable homes or nearby changeable
as soon as begins an once manifestation (performs one of several furnished limbs)
while starts quite a while trap (loop with prerequisite)
Flaccid search phrases
This tokens become keywords for the setting when they’re pertinent that can also be utilized for identifiers in other contexts:
powerful mention a powerful type in Kotlin/JS laws
advantage by using the lessons keywords reports https://hookupdate.net/it/music-dating-it/ an inline school
Modifier search phrases
Listed here tokens behave as key phrases in modifier records of declarations that can also be used as identifiers in other contexts:
real means a platform-specific execution in multiplatform work
conceptual mark a class or affiliate as theoretical
annotation declares an annotation type
partner declares a companion thing
const scars a home as a compile-time continuous
enum reports an enumeration
wish spots a resolution as platform-specific, wanting an implementation in platform segments.
additional markings an affirmation as implemented maybe not in Kotlin (available through JNI or in JavaScript)
infix makes it possible for dialing a features in infix writing
inner lets writing about the external school case from a nested course
interior scars an affirmation as apparent in this component
out markings a sort vardeenhet as covariant
override marks enrolled as a supersede of a superclass manhood
open public spots a declaration as obvious just about anywhere
reified marks a kind vardeenhet of an inline function as easily accessible at runtime
sealed declares an enclosed classroom (a category with restricted subclassing)
suspend markings a function or lambda as suspending (usable as a coroutine)
tailrec markings a function as tail-recursive (enabling the compiler to exchange recursion with iteration)
Specific identifiers
Below identifiers include outlined by your compiler in certain contexts and can be utilized for typical identifiers various other contexts:
niche is used inside real estate accessor to mention towards assistance industry regarding the house
Providers and specific icons
Kotlin supports all of the following employees and unique symbols:
&& , || , ! – reasonable ‘and’, ‘or’, ‘not’ employees (for bitwise functions, incorporate corresponding infix functionality)
== , != – equality providers (render to phone calls of equals() for non-primitive sort)
, > , , >= – evaluation operators (render to calls of compareTo() for non-primitive sorts)
[ , ] – listed access user (render to phone calls of purchase and set )
?. does a good telephone call (phone calls a method or accesses a house when individual is definitely non-null)
?: usually takes the right-hand appreciate when the left-hand price is definitely null (the elvis user)
: split a reputation from a sort in declarations
? marks a kind as nullable
sets apart the guidelines and body of a lambda manifestation
sets apart the variables and generate type declaration in a work kind
split the situation and body of a whenever phrase branch
highlights or sources a program name
highlights or records a lambda tag
; stands between a number of records for a passing fancy range
$ references a varying or expression in a string layout
replacements an unused factor in a lambda concept
replacements an abandoned parameter in a destructuring declaration