DEV Community

Discussion on: Rust #5: Naming conventions

Collapse
 
rsalmei profile image
Rogério Sampaio de Almeida

with as a prefix is used in special constructors like Vec::with_capacity(). Your example is wrong (using with as a suffix), probably why you didn't see it used that often).