mcandre / toys

code demos for newbies
https://github.com/mcandre/toys
30 stars 6 forks source link

lifetimes and &str and refs generally #450

Closed mcandre closed 1 year ago

mcandre commented 1 year ago

For more better Rust code without so many Strings, copies, and clones.

Ask the community again whether API functions should receive &str vs String, and return &str vs String.