3 ms·
> As C++ has been contemplating moving away from exceptions, they've effectively been forced to choose between concise language abstractions or strict memory ma
by jcranmer 7y ago
> As C++ has been contemplating moving away from exceptions, they've effectively been forced to choose between concise language abstractions or strict memory management. They seem to be moving toward the former
You don't need exception handling to handle memory allocation failure: just make your allocator return null (that's what new (nothrow) X does, after all). The question of how to handle allocation failure is easily the single most divisive question presented in the proposal, and in the face of stark division, status quo usually wins the day.
- deleted 7y ago[deleted]