You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whether or not we should support RustString + RustString comes down to whether or not we expect people to understand that this will cause an allocation.
I think that it's fair to expect folks to understand that adding two strings allocates, since that's what happens when you add strings in Rust.
So, this sounds good to me.
I think we'd want to support RustString + RustStringRef and have that use Rust to do the addition and return a RustString.
Something like:
Right now, we need to call
toString
from eachcreate_string()
and then can useString
's + operator, like so:But, I guess that it is inefficient to call
toString
corresponding to eachcreate_string
.The text was updated successfully, but these errors were encountered: