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. 🫠
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. 🫠