5 ms·
On the other side of the coin, I don't think I've ever had a job in which anyone would have ever considered banning exceptions (although I have worked at some w
by EliRivers 7y ago
On the other side of the coin, I don't think I've ever had a job in which anyone would have ever considered banning exceptions (although I have worked at some where people did know that some other companies did ban them). The world of programming is a very broad church indeed.
- snovv_crash 7y agoOften bare-metal embedded toolchains don't support stack unwinding. I've even worked on an embedded linux where the toolchain didn't support stack unwinding. It made porting certain code to the platform interesting, to say the least.
- greggman2 7y agoExamples of companies or projects that ban exceptions Google, and therefore Chromium https://google.github.io/styleguide/cppguide.html https://google.github.io/styleguide/cppguide.html Mozilla, and therefore Firefox https://firefox-source-docs.mozilla.org/tools/lint/coding-style/coding_style_cpp.html https://firefox-source-docs.mozilla.org/tools/lint/coding-st... I'm pretty sure WebKit also doesn't use exceptions. It's not listed in their style guide but searching the repo I don't find any instances and the repo history shows turning them off.
- a_t48 7y agoWhat kinds of work were you doing that allowed exceptions?
- EliRivers 7y agoOff the top of my head, just listing a handful of various projects; a commercial static analyser, various GUIs, a broadcast industry projectile tracking and information presenting system, a multiple networked radar (and similar) network data fusion project, broadcast automation software, various data processing and display software sets, software simulating mechanical movement for artificial test data generation, image processing and morphing. I could go on, but hopefully that gives a flavour. A whole big bag of things. From my perspective, banning exceptions is the exception (a ha ha); not the rule. I've worked on embedded software that (I expect) didn't support exceptions in the provided compiler, but I don't consider that an explicit ban on exceptions - they simply weren't possible.