• Ephera@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 hours ago

    I’m currently prototyping a macro to help reduce boilerplate, as part of a more general library. And I’m doing some wild shit, like defining the fields of a data type from the parameter list of a function.

    But then, yeah, what I’m now stuck on is that my generated code references a data type under one name, but it’s actually got a different name in the public API. All the wild shit was smooth sailing, but a technicality now fucks me over. 🫠