~/talk

Death to boilerplate with Scala meta

TalkinFrenchat Scala.IO 2017 · 2017-11-02..11-03· [developer-experience]
links:none on file
slides:none on file

Scala.meta macros are used to eliminate repetitive boilerplate by generating concrete Scala code with quasiquotes for building and pattern‑matching ASTs. They can create companion objects, implicit helpers, and methods with varying arities (for example a Show/string representation for case classes); macros must live in a separate compilation unit, require sbt clean && compile to see generated code, and currently work on Scala 2.11 and 2.12 — demonstrated in the Hamster project.

AI-written summary · about

  1. 0:00Scala Meta and macros
  2. 1:03Macro vocabulary
  3. 3:41Old vs new macros
  4. 5:29Simplify macros with Cozycot
  5. 9:48Scala Explorer symbols
  6. 11:14Real project example
  7. 13:43Macro tools and resources
  8. 14:40Testing macros Q&A
  9. 16:26Macros in IDE integration
  10. 17:51Scala Meta macro evolution
  11. 18:54Macro limits and possibilities
  12. 20:38Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.