A Java geek
  • Me
  • Books
  • Speaking
  • Mentions
  • Focus
  • Newsletters

delegation

A collection of 1 posts
Beautify third-party API with Kotlin
Development

Beautify third-party API with Kotlin

Scala has popularized the 'Pimp my library' pattern: This is just a fancy expression to refer to the ability to supplement a library using implicit conversions. — Pimp My Library Pattern in Scala Kotlin does provide the same capability. However, it achieves it via extension functions. While the generated bytecode is similar to Java’s static methods, the developer experience is the same as adding functions to existing types. This approach has limitations, though.

Dec 19, 2021
A Java geek © 2008-2026
v. 0c74272de1a829b7547f871650d5e63f6445b161/13697367144
Latest Posts