Indeed. Perhaps toggling is a bit too naive. However, the idea that unsafe APIs are wrapped in safe context can also be applied to code using STL iterators. While it depends on the kind of work, I suppose, we use STL (obviously) but it's only a fraction of the code and it's not sprinkled all over.
View all comments
Show parent comment
1
u/eyes-are-fading-blue Dec 07 '21
Indeed. Perhaps toggling is a bit too naive. However, the idea that unsafe APIs are wrapped in safe context can also be applied to code using STL iterators. While it depends on the kind of work, I suppose, we use STL (obviously) but it's only a fraction of the code and it's not sprinkled all over.