Closed nrxus closed 4 years ago
Slight-tangent: Are the two macros needed?
Could/should a single macro exist that detects struct vs impl blocks. Would anyone wants this and how hacking would that check be? (try to parse into syn::Struct and syn::Impl and see which one wins?)
Fixed in: 1f5b1636
Leaving it as two macros for now, and keeping faux
as the name.
Might revisit this later.
As it stands right now the names would be pretty confusing to anyone using this library.
The library is called
faux
. The macro needed on top of structs is calledduck
. The macro needed on top of impl blocks is calledquack
.While a duck-theme would be pretty cool, I think maybe something more obvious like:
phony::struct
phony::methods
might be easier to understand.