Metaprogramming using Scala macros is a powerful tool, but macros can look quite scary the first time you see them. I’ll try to show you that macros are both useful and fun! Part 1: introduction to macros, using live coding to demonstrate how they work and what they can do. Examples of implementing a “def macro” and a macro annotation. Part 2: introduce scala.meta, the next generation of Scala metaprogramming. More live coding. Part 3: when you should NOT use a macro. A few examples of using shapeless to achieve the same result as writing a macro, but with less effort. Session length 40 minutes Presented in English Target audience Intermediate: Requires a basic knowledge of the area Speaker Chris Birchall (Ovo Energy)
ScalaMatsuri day1 A-8 Meta-program and/or shapeless all the things! - YouTube | |
2 Likes | 2 Dislikes |
124 views views | 393 followers |
Science & Technology | Upload TimePublished on 8 Mar 2017 |
Không có nhận xét nào:
Đăng nhận xét