Closed 0----0 closed 3 years ago
This is a bit of a holdover from the direct GGPO port where C doesn't exactly have namespaces/modules. Should be a pretty simple global %s/Backroll//g
if anyone wants to tackle this.
I'd like to claim this 🙂
So it looks like there's a BackrollConfig
in backroll/lib.rs
, as well as a Config
in backroll/sync.rs
. I'm thinking that BackrollConfig
should be renamed to Config
and then changing the name of Config
in sync.rs
to something like PlayerConfig
. Does that sound reasonable?
For disambiguation, yes, that definitely should be renamed.
The library currently has a number of typenames prefixed with "Backroll," which seems to add a lot of name bloat. The examples seem to deal with this name bloat with
use backroll::*;
. Rather than typing something likewould it be more idiomatic to leave the namespace intact and use
to avoid conflicts?
I'm not super familiar with Rust naming conventions, so consider this a suggestion, but it seems like this is the convention among other Rust libraries, with names like
Context
,Sprite
, etc going un-prefixed.