Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> You can't have reasonable value types that own resources if you need explicit error checking.

The proper place for the period in that sentence is before the "if"; owning resources is not a reasonable thing for a value type to do.



Tell me more about how std::string is unreasonable.


Are you talking about Rust's or C++'s? Name conflict :)

In Rust, std::string::String is not a "value type", and by that, I mean it's not Copy.


C++'s.


Then I won't comment, though I wonder if the parent is thinking of things like https://groups.google.com/a/chromium.org/forum/#!msg/chromiu...




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: