nrxus / faux

Struct mocking library for Rust
https://nrxus.github.io/faux/
MIT License
415 stars 14 forks source link

Think of a better name #1

Closed nrxus closed 4 years ago

nrxus commented 4 years ago

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 called duck. The macro needed on top of impl blocks is called quack.

While a duck-theme would be pretty cool, I think maybe something more obvious like: phony::struct phony::methods

might be easier to understand.

nrxus commented 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?)

nrxus commented 4 years ago

Fixed in: 1f5b1636

Leaving it as two macros for now, and keeping faux as the name.

Might revisit this later.