Skip to content

Instantly share code, notes, and snippets.

@yole
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yole/6f8f5cbba964489acf3d to your computer and use it in GitHub Desktop.
Save yole/6f8f5cbba964489acf3d to your computer and use it in GitHub Desktop.
Global statistics for Kotlin language feature usage
Repositories analyzed: 596
Files analyzed: 11618
Lines analyzed: 956031
Error count: 694 in 23 projects
'by' delegations: 156 in 33 projects
Classes: 20923 in 562 projects
Companion objects: 1487 in 215 projects
Primary constructors with non-default visibility: 250 in 70 projects
Inner classes: 321 in 90 projects
Inner classes with outer type parameters: 34 in 18 projects
Object declarations: 5008 in 362 projects
Top-level object declarations: 1155 in 162 projects
Enum classes: 668 in 157 projects
Enum classes with constructor parameters: 250 in 65 projects
Enum entries: 4103 in 157 projects
Enum entries with body: 237 in 17 projects
Functions: 68086 in 592 projects
Inline functions: 1813 in 96 projects
Extension functions: 13996 in 300 projects
Extension functions inside classes: 1231 in 98 projects
Lambdas: 33918 in 476 projects
Lambdas with declared return type: 79 in 23 projects
Labeled expressions: 61 in 19 projects
'break' or 'continue' with label: 55 in 16 projects
'return' with label: 68 in 18 projects
'while' loops: 1257 in 228 projects
'do/while' loops: 87 in 49 projects
'when' with expression: 2354 in 307 projects
'when' without expression: 753 in 97 projects
'in' condition in 'when': 51 in 20 projects
'val' declarations: 68128 in 564 projects
'var' declarations: 15790 in 463 projects
Type parameters: 20650 in 277 projects
Type parameters with variance: 3086 in 34 projects
Type arguments: 70725 in 532 projects
Type arguments with variance: 1736 in 120 projects
Type arguments with <*>: 2151 in 114 projects
Range operators: 1820 in 208 projects
Types after colon: 303 in 56 projects
Backing fields: 373 in 64 projects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment