from Hacker News

Implicit Classes in Scala: The Machinery Behind the Semantics (+ Compiler Magic)

by gratner on 11/9/16, 8:50 PM with 1 comments

  • by gratner on 11/9/16, 8:52 PM

    How does scalac compile implicit classes? Where does the implicit class get de-sugared and how is the implicit method represented inside the compiler? How does scalac search for a matching implicit method? Learn about the machinery behind the language semantics - the phases: parser, namer, typer and the data structures: Compilation Unit, Context, Tree, Symbol, Scope - by jumping into the code.