xmltree-rs
xmltree-rs copied to clipboard
XMLNode is an unidiomatic type name
It should be called XmlNode, the same way many libraries¹ have a Json type (not JSON), xml has UriMapping instead of URIMapping and so on.
¹ sqlx, actix-web, rocket, ...
MFEK says there's not one right way to name Rust things.
Json, Uri are ugly, imo…this crate is fine…changing it now would break many downstream users for no benefit.
It's part of the official API guidelines that acronyms in type names should not be all-uppercase: https://rust-lang.github.io/api-guidelines/naming.html
MFEK is just as wrong as xmltree.
cool opinions