Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
When should I use String vs. andstr in Rust?
(
steveklabnik.com
)
7 points
by
tempodox
3 months ago
|
hide
|
past
|
favorite
|
1 comment
1oooqooq
3 months ago
[–]
meh. just use str and &str for borrowing (params, return). String is so useless i just instantiate as needed and keep in a single scope and back to str before leaving.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: