Please enable JavaScript.
Coggle requires JavaScript to display documents.
Introduction Kotlin (Benefit static typing (Performance (faster calling…
Introduction Kotlin
Benefit static typing
Performance
faster calling method in compile time rather than runtime
Reliability
compile time find errors early
Maintainability
you can see what kind of objects the code is work
Tool support
IDE features
Functional programming
First-class functions
can store functions into variables
pass them as parameter
return them from other functions
Immutability
immutable objects
No side effects
same result with the same input
Benefits
conciseness
avoid duplication code
Safe multithreading
because of immutable objects and pure functions
Easier testing
val x = 1;
type inference
less verbosity
compiler knows its an Int
Support nullable types
possible null pointers in compile time
Support function types
functional programming
Lambda expressions
blocks of code with less boilerplate
Data classes
concise syntax to creating immutable objects
Function types
receive or return other functions
Rich api
to work in functional programming style
Statically typed