On Apr 25, 2013, at 1:39 AM, Abhijeet Gaiha wrote: > There is an issue on Servo #282, which talks about having a uniform string > internment strategy across Rust, Spidermonkey and NetsurfCSS. > > Is there any existing string internment library in Rust? > If not, any plans to provide one? > >
The Rust parser currently performs interning on the strings that represent identifiers. That code lives in libsyntax/util/interner.rs. I think it wouldn't be hard to reformulate it as a library, but it does expose some unpleasant elements of thread-local-state, at the moment. John Clements
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
