Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 408 Bytes

File metadata and controls

13 lines (7 loc) · 408 Bytes

Extension functions

Extension functions are an idiomatic way of extending classes that we do not control to express our code in a more OOP way. Unlike Ruby, they are not unconditionally applied so we don't blow up basic data types.

Extensions are resolved statically.

Official Docs

https://kotlinlang.org/docs/reference/extensions.html

Problem

  • Rework all these ugly functions to be truly OOP