Hacker News new | past | comments | ask | show | jobs | submit login

Makes a lot of sense. I get frustrated with how explicit I have to be with Rust sometimes (currently I'm writing something with a lot of reusable, immutable structures and am put off by how much Rc.clone() that requires) but making it known to the programmer that every indexing of a String is effectively an iteration is a good call.



Yeah, this is a tough thing when coming from other languages.

I've been using references pretty effectively to get around some issues like this, though in other cases Rc is my only resort.

If you have some code up on github, I'd be happy to take a look and see if there's some other options that are less cumbersome.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: