clang-rs
clang-rs copied to clipboard
A few renaming suggestions
Hey, thanks a lot for making this library, it's great!
When you get around to releasing a new version, may I suggest the following?
- A lot of methods use the
get_
prefix, which is generally discouraged in Rust (source); so instead of e.g.get_name()
, just usename()
. - It was confusing to me at first that "entity" means "cursor", so I'd either rename the
Entity
struct toCursor
, to match the original bindings, or at least document it.
Of course, if there's reasons for not doing these, then by all means do so, just wanted to note the few gripes I had.