Skip to content

Solution for automatic creation of adapters #176

@MateuszKubuszok

Description

@MateuszKubuszok

We should figure out a way of getting rid of the adapter boilerplate as seen in https://scala-hearth.readthedocs.io/en/latest/basic-utilities/#your-first-hearth-based-macro, e.g.

// Scala 2 - macro annotations?
@GenerateAdapters("yourMacro" -> "yourMacroImpl")
class YourMacro(val c: blackbox.Context) extends hearth.MacroCommonsScala2 with SharedMacroLogic
// Scala 3 - compiler plugin?
@GenerateAdapters("yourMacro")
class YourMacro(q: Quotes) extends hearth.MacroCommonsScala3(using q), SharedMacroLogic

Metadata

Metadata

Assignees

No one assigned

    Labels

    component:cross-quotesImprovement/fix to Cross-Quotes functionalityhelp wantedExtra attention is neededholding out for a heroIt's not impossible, but life is too short to do this to oneself for freeissue-type:enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions