4 ms·
To be fair though, this works because loading a symbol foo in an isolated scope in javascript is a safe operation. If you were trying to namespace each of thos
by shadowmint 13y ago
To be fair though, this works because loading a symbol foo in an isolated scope in javascript is a safe operation.
If you were trying to namespace each of those symbols as you went because of a global symbol table (>_> ... c), then this would be a much more complex task.
It's important to realize that rust libraries are c libraries, complete with symbol information; Rust does mangle symbol names per crate by default, but I'm not 100% sure would stop you from having some issues where the public symbols in a crate caused global symbol table conflicts.
Don't know though, just speculating.