How to create your own String interpolator in Scala | Rock the JVM

How to create your own String interpolator in Scala | Rock the JVM

2.015 Lượt nghe
How to create your own String interpolator in Scala | Rock the JVM
Written form to keep for later: https://rockthejvm.com/blog/208610/custom-interpolator This video is for more advanced Scala programmers. However, all you need to know is how implicit classes work, nothing else. In this video I'll show you a less known technique to create your own String interpolator so you can create any kind of objects out of Strings in which you can inject values and expressions. After you're done, it will seem like your interpolator is part of the language itself. Follow Rock the JVM on: LinkedIn: https://linkedin.com/company/rockthejvm Twitter: https://twitter.com/rockthejvm Blog: https://rockthejvm.com/blog ------------------------------------------------------------------------- Home: https://rockthejvm.com -------------------------------------------------------------------------