2 ms·
Both good points. Rust doesn't have the problem with execution being suspended, since the only mechanism for suspending execution is through the task system. Th
by pcwalton 14y ago
Both good points. Rust doesn't have the problem with execution being suspended, since the only mechanism for suspending execution is through the task system. Thread locals are all per-task.
The issue with introspection is fair, and it's a gotcha you have to keep in mind whenever you use dynamic variables. They're necessary to make the task system and condition handler system work under the hood, however, so we can't just remove them.
- masklinn 14y ago> They're necessary to make the task system and condition handler system work under the hood, however, so we can't just remove them. Oh I've nothing against dynamic variables at all and wouldn't want them (or conditions) to be removed from Rust (in fact I wish solid dynamic variables were available in more languages), don't get me wrong.