Re:Rust is now overall faster than C in benchmarks
by lambda on Sunday January 03, 2021 @06:03PM
(#25626132)
Not just the standard library, but the core language. They are what you get if you write a string literal in your code.
[ Parent
| on HN ]
Re:Rust is now overall faster than C in benchmarks
by jacoblambda on Monday January 04, 2021 @02:38AM
(#25628648)
Yes but if we are being pedantic no. Of course the language does still greatly lean into the null terminated string concept.
You get a null terminated char array but the length is actually available since arrays (as long as they haven't decayed into pointers) can still share their length at compile time.