Y
Hacker News
new
|
ask
|
show
|
jobs
by
TheLoneWolfling
4054 days ago
Agreed. The copy-on-substring behavior is a real pain, and I don't know if there's any workaround.
1 comments
needusername
4053 days ago
Not using String, eg. using CharBuffer (and #slice) or building your own. It's annoying and not always an option.
link
TheLoneWolfling
4051 days ago
Yep, as you said, not always an option. No way to pass them to external things expecting strings, for one. Wouldn't be an issue, except that you can't extend strings.
link