←back to thread

460 points birdculture | 1 comments | | HN request time: 0.227s | source
Show context
baalimago ◴[] No.43981145[source]
>For instance, why do you have to call to_string() on a thing that’s already a string?

It's so hard for me to take Rust seriously when I have to find out answers to unintuitive question like this

replies(7): >>43981274 #>>43981417 #>>43981621 #>>43981663 #>>43981709 #>>43981713 #>>43982610 #
1. winrid ◴[] No.43981663[source]
The question is worded weird for fun. One is a string slice (like char*) and one is String or &String, which is closer to an object.