Keyword phrases and operators. This tokens behave as keyword combinations in modifier lists of conditions that can also be used as identifiers various other contexts:

Keyword phrases and operators. This tokens behave as keyword combinations in modifier lists of conditions that can also be used as identifiers various other contexts:

Solid combination of keywords

This tokens are often translated as keywords and phrases and cad’t be utilized for identifiers:

class declares a category

accomplish starts a do/while circle (cycle with postcondition)

more determine the side of an if phrase which happens to be completed after the disease are false

untrue points out the ‘false’ valuation of the Boolean type

points out the object being iterated in an over circle

is used as an infix owner to test that an advantages belongs to a variety, a group or other thing that describes the ‘contains’ means

can be used in once expressions for the very same intent

mark a type factor as contravariant

can be used as a driver to determine that a benefits cannot participate in a variety, a selection or other enterprise that describes the ‘contains’ approach

is utilized in as soon as construction for similar function

screen reports a program

is employed in if expressions for the very same objective

is employed in if expressions for the very same factor

nothing try a steady stage a target guide that doesd’t denote any item

real points out the ‘true’ importance of the Boolean kinds

typealias reports a type alias

typeof reserved for potential incorporate

val reports a read-only assets or regional variable

var declares a mutable assets or nearby variable

if begins an once concept (executes one of the given divisions)

while begins sometime cycle (cycle with prerequisite)

Soothing combination of keywords

The below tokens become key phrases into the setting after being appropriate that can also be used as identifiers various other contexts:

vibrant recommendations a dynamic key in Kotlin/JS rule

value aided by the school keyword declares an inline lessons

Modifier keyword combinations

real denotes a platform-specific setup in multiplatform tasks

abstract markings a category or affiliate as theoretical

annotation declares an annotation lessons

partner reports a friend subject

const spots a residential property as a compile-time continuous

enum reports an enumeration

imagine spots an announcement as platform-specific, anticipating an execution in system segments.

outside spots a statement as implemented perhaps not in Kotlin (available through JNI or perhaps in JavaScript)

infix enables dialing a function in infix writing

inside grants writing about the outer classroom example from a nested type

interior spots a statement as visible in the current component

out scars a kind quantity as covariant

override scars a member as an override of a superclass representative

general public signifies a testimony as noticeable anyplace

reified markings a kind quantity of an inline be easily accessible at runtime

secured reports an enclosed lessons (a class with confined subclassing)

suspend mark a function or lambda as suspending (usable as a coroutine)

tailrec spots a be tail-recursive (letting the compiler to replace recursion with iteration)

Particular identifiers

All of the following identifiers tends to be described from the compiler in certain contexts and certainly will be utilized for consistent identifiers in other contexts:

area is utilized inside a residential property accessor to mention within the assistance niche of this property

Employees and specialized icons

Kotlin helps the subsequent workers and particular representations:

&& , || , ! – logical ‘ann’, ‘or’, ‘not’ providers (for bitwise activity, utilize related infix operates)

== , != – equality operators (interpreted to phone calls of equals() for non-primitive types)

, > , , >= – comparison employees (translated to calls of compareTo() for non-primitive types)

[ , ] – listed gain access to agent (translated to phone calls of attain and place )

?. performs a secure telephone call (calls one way or accesses a property if your phone was non-null)

?: produces the right-hand advantages when left-hand importance are null (the elvis user)

: sets apart a name from a kind in declarations

? spots a kind as nullable

sets apart the parameters and body of a lambda concept

classify the guidelines and repay means declaration in a function sort

distinguishes the disorder and body of an as soon as concept department

highlights or references a program name

introduces or references a lambda name

; divides many claims about the same series

$ mention https://hookupdate.net/bookofsex-review/ a varying or concept in a chain template

substitutes an abandoned factor in a lambda manifestation

substitutes an untouched vardeenhet in a destructuring announcement

Deixar uma resposta

O seu endereço de email não será publicado. Campos obrigatórios marcados com *