7 Nov
2013
7 Nov
'13
10:59 p.m.
On 8/11/2013 11:27, Quoth Nevin Liber:
On 7 November 2013 16:00, Gavin Lambert
wrote: The first example in particular actually seems potentially dangerous to me, because the ability to handle the non-terminated string is "hidden", making it more likely that the author would forget and pass s to something else that's expecting a terminated string.
How does that differ from anything else that uses a C string?
I just don't see how string_ref is any worse.
The current version of string_ref is not any worse. What we're discussing here is a possible extra constructor, which I am saying is potentially useful but possibly too dangerous to be worthwhile.