---
title: "Meaning & Key Takeaway of: Other than when dealing with…"
description: "\"“Other than when dealing with exception-unsafe legacy code (which we'll discuss later in this Item), offering no exception safety guarantee should be a..."
image: "https://sms4smile.com/quotes/i/74f/scott-meyers-49057_data-structures_other-than-when-dealing-with-exception-u_1290978.png"
---

#  Other than when dealing with exception-unsafe legacy code…

![“Other than when dealing with exception-unsafe legacy code (which we'll discuss later in this Item), offering no exception safety guarantee should be an option only if your crack team of requirements analysts has identified a need for your application to leak resources and run with corrupt data…” quote by Scott Meyers](https://sms4smile.com/quotes/i/74f/scott-meyers-49057_data-structures_other-than-when-dealing-with-exception-u_1290978.png)   [Download](https://sms4smile.com/quotes/i/74f/scott-meyers-49057_data-structures_other-than-when-dealing-with-exception-u_1290978.png) [Open image](https://sms4smile.com/quotes/i/74f/scott-meyers-49057_data-structures_other-than-when-dealing-with-exception-u_1290978.png)

> ““Other than when dealing with exception-unsafe legacy code (which we'll discuss later in this Item), offering no exception safety guarantee should be an option only if your crack team of requirements analysts has identified a need for your application to leak resources and run with corrupt data structures. As””

[Scott Meyers](https://sms4smile.com/quotes/author/scott-meyers/)

## About This Quote

This interpretation was drafted with AI assistance. It is one reading of the quote, not the author's own explanation.

Avoid promising exception safety unless the system can guarantee resource integrity; otherwise, risk leaks and corruption.

**In simple terms:** Only guarantee exception safety when you can ensure clean resource handling.

Key Takeaway

Ensure resource safety before offering exception guarantees.

Themes

software reliability exception handling resource management programming best practices

Mood

cautious technical

Type

programming advice technical commentary

When to use this quote

- system design
- code review
- critical systems development

Key Concepts

RAII error handling software design

Questions to Reflect On

- Do you have mechanisms to clean up after exceptions?
- When is it acceptable to for exception safety?

A Different Perspective

Guaranteeing safety without proper mechanisms leads to instability.

★ ★ ★ ★ ★   No ratings yet

[Data structures](https://sms4smile.com/quotes/about/data-structures/) [Exception Safety](https://sms4smile.com/quotes/about/exception-safety-4204996/) [Exception Unsafe](https://sms4smile.com/quotes/about/exception-unsafe-4204997/) [Legacy Code](https://sms4smile.com/quotes/about/legacy-code-1549577/) [Offering Exception](https://sms4smile.com/quotes/about/offering-exception-4204999/) [Programming](https://sms4smile.com/quotes/about/programming/) [Technology](https://sms4smile.com/quotes/about/technology/) [Unsafe Legacy](https://sms4smile.com/quotes/about/unsafe-legacy-4204998/)

## Related quotes

> ["Legacy code" often differs from its suggested alternative by actually working and scaling.](https://sms4smile.com/quotes/bjarne-stroustrup/legacy-code-often-differs-from-its-suggested-alternative-by-actually/)

[Bjarne Stroustrup](https://sms4smile.com/quotes/author/bjarne-stroustrup/)

> [“To me, legacy code is simply code without tests.”](https://sms4smile.com/quotes/michael-c-feathers/to-me-legacy-code-is-simply-code-without-tests/)

[Michael C. Feathers](https://sms4smile.com/quotes/author/michael-c-feathers/)

> [“Legacy code. The phrase strikes disgust in the hearts of programmers. It conjures images of slogging through a murky swamp of tangled undergrowth with…](https://sms4smile.com/quotes/michael-feathers/legacy-code-the-phrase-strikes-disgust-in-the-hearts-of-programmers/)

[Michael Feathers](https://sms4smile.com/quotes/author/michael-feathers/)

> [ “Database Management System \[Origin: Data + Latin basus "low, mean, vile, menial, degrading, ounterfeit."\] A complex set of interrelational data structures allowing data to… ](https://sms4smile.com/quotes/anonymous/database-management-system-origin-data-latin-basus-low-mean-vile/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [“Services interact with their peers strictly through APIs and thus don’t share data structures, database schemata, or other internal representations of objects. Bounded”](https://sms4smile.com/quotes/gene-kim/services-interact-with-their-peers-strictly-through-apis-and-thus-don/)

[Gene Kim](https://sms4smile.com/quotes/author/gene-kim/)

> [Generally, the craft of programming is the factoring of a set of requirements into a a set of functions and data structures.](https://sms4smile.com/quotes/douglas-crockford/generally-the-craft-of-programming-is-the-factoring-of-a-set-of/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [“It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures.”](https://sms4smile.com/quotes/alan-j-perlis/it-is-better-to-have-100-functions-operate-on-one-data-structure-than-2/)

[Alan J. Perlis](https://sms4smile.com/quotes/author/alan-j-perlis/)

> [“Compassion is what you're good at. I'm better at complex searches through organized data structures.”](https://sms4smile.com/quotes/orson-scott-card/compassion-is-what-you-re-good-at-i-m-better-at-complex-searches/)

[Orson Scott Card](https://sms4smile.com/quotes/author/orson-scott-card/)

> [“A distinctive property of functional data structures is that they are always persistent—updating a functional data structure does not destroy the existing version, but…](https://sms4smile.com/quotes/chris-okasaki/a-distinctive-property-of-functional-data-structures-is-that-they-are/)

[Chris Okasaki](https://sms4smile.com/quotes/author/chris-okasaki/)

> [The programmer's primary weapon in the never-ending battle against slow system is to change the intramodular structure. Our first response should be to reorganize…](https://sms4smile.com/quotes/fred-brooks/the-programmer-s-primary-weapon-in-the-never-ending-battle-against/)

[Fred Brooks](https://sms4smile.com/quotes/author/fred-brooks/)

> [Smart data structures and dumb code works a lot better than the other way around.](https://sms4smile.com/quotes/eric-s-raymond/smart-data-structures-and-dumb-code-works-a-lot-better-than-the-other/)

[Eric S. Raymond](https://sms4smile.com/quotes/author/eric-s-raymond/)

> [In C there are no data structures: there are pointers and pointer arithmetic. So you have a pointer into a data structure.](https://sms4smile.com/quotes/james-gosling/in-c-there-are-no-data-structures-there-are-pointers-and-pointer/)

[James Gosling](https://sms4smile.com/quotes/author/james-gosling/)

> [I will, in fact, claim that the difference between a bad programmer and a good one is whether he considers his code or his…](https://sms4smile.com/quotes/linus-torvalds/i-will-in-fact-claim-that-the-difference-between-a-bad-programmer-and/)

[Linus Torvalds](https://sms4smile.com/quotes/author/linus-torvalds/)

> [It is better to have 100 functions operate on one data structure than to have 10 functions operate on 10 data structures.](https://sms4smile.com/quotes/alan-perlis/it-is-better-to-have-100-functions-operate-on-one-data-structure-than/)

[Alan Perlis](https://sms4smile.com/quotes/author/alan-perlis/)

> [A data structure is just a stupid programming language.](https://sms4smile.com/quotes/bill-gosper/a-data-structure-is-just-a-stupid-programming-language/)

[Bill Gosper](https://sms4smile.com/quotes/author/bill-gosper/)

## More by Scott Meyers

> [Lightstone's Convolution Principle: The concurrent development of multiple features operating on intersecting componentry will take longer to complete than the sum of the schedule…](https://sms4smile.com/quotes/scott-meyers/lightstone-s-convolution-principle-the-concurrent-development-of/)

[Scott Meyers](https://sms4smile.com/quotes/author/scott-meyers/)

> [Do that, and the best you can hope for is that people will ignore you. More realistically, you'd be skinned alive, or possibly sentenced…](https://sms4smile.com/quotes/scott-meyers/do-that-and-the-best-you-can-hope-for-is-that-people-will-ignore-you/)

[Scott Meyers](https://sms4smile.com/quotes/author/scott-meyers/)

> [Friends, much as in real life, are often more trouble than their worth.](https://sms4smile.com/quotes/scott-meyers/friends-much-as-in-real-life-are-often-more-trouble-than-their-worth/)

[Scott Meyers](https://sms4smile.com/quotes/author/scott-meyers/)

> [“That doesn't upset too many people, but the fact that accessibility restrictions don't enter into the picture has caused more than one otherwise pacifistic…](https://sms4smile.com/quotes/scott-meyers/that-doesn-t-upset-too-many-people-but-the-fact-that-accessibility/)

[Scott Meyers](https://sms4smile.com/quotes/author/scott-meyers/)

> [“First we crawl. Later we crawl on broken glass.”](https://sms4smile.com/quotes/scott-meyers/first-we-crawl-later-we-crawl-on-broken-glass/)

[Scott Meyers](https://sms4smile.com/quotes/author/scott-meyers/)

> [... the results are undefined, and we all know what 'undefined' means: it means it works during development, it works during testing, and it…](https://sms4smile.com/quotes/scott-meyers/the-results-are-undefined-and-we-all-know-what-undefined-means-it/)

[Scott Meyers](https://sms4smile.com/quotes/author/scott-meyers/)

> [A non-virtual function says, you have to do this and you must do it this way. A virtual function says you have to do…](https://sms4smile.com/quotes/scott-meyers/a-non-virtual-function-says-you-have-to-do-this-and-you-must-do-it/)

[Scott Meyers](https://sms4smile.com/quotes/author/scott-meyers/)

[Explore all 8 Scott Meyers quotes ](https://sms4smile.com/quotes/author/scott-meyers/)

## More Data structures quotes

> [ “Database Management System \[Origin: Data + Latin basus "low, mean, vile, menial, degrading, ounterfeit."\] A complex set of interrelational data structures allowing data to… ](https://sms4smile.com/quotes/anonymous/database-management-system-origin-data-latin-basus-low-mean-vile/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [It is better to have 100 functions operate on one data structure than to have 10 functions operate on 10 data structures.](https://sms4smile.com/quotes/alan-perlis/it-is-better-to-have-100-functions-operate-on-one-data-structure-than/)

[Alan Perlis](https://sms4smile.com/quotes/author/alan-perlis/)

> [I will, in fact, claim that the difference between a bad programmer and a good one is whether he considers his code or his…](https://sms4smile.com/quotes/linus-torvalds/i-will-in-fact-claim-that-the-difference-between-a-bad-programmer-and/)

[Linus Torvalds](https://sms4smile.com/quotes/author/linus-torvalds/)

> [In C there are no data structures: there are pointers and pointer arithmetic. So you have a pointer into a data structure.](https://sms4smile.com/quotes/james-gosling/in-c-there-are-no-data-structures-there-are-pointers-and-pointer/)

[James Gosling](https://sms4smile.com/quotes/author/james-gosling/)

> [Smart data structures and dumb code works a lot better than the other way around.](https://sms4smile.com/quotes/eric-s-raymond/smart-data-structures-and-dumb-code-works-a-lot-better-than-the-other/)

[Eric S. Raymond](https://sms4smile.com/quotes/author/eric-s-raymond/)

> [The programmer's primary weapon in the never-ending battle against slow system is to change the intramodular structure. Our first response should be to reorganize…](https://sms4smile.com/quotes/fred-brooks/the-programmer-s-primary-weapon-in-the-never-ending-battle-against/)

[Fred Brooks](https://sms4smile.com/quotes/author/fred-brooks/)

> [“A distinctive property of functional data structures is that they are always persistent—updating a functional data structure does not destroy the existing version, but…](https://sms4smile.com/quotes/chris-okasaki/a-distinctive-property-of-functional-data-structures-is-that-they-are/)

[Chris Okasaki](https://sms4smile.com/quotes/author/chris-okasaki/)

> [“Compassion is what you're good at. I'm better at complex searches through organized data structures.”](https://sms4smile.com/quotes/orson-scott-card/compassion-is-what-you-re-good-at-i-m-better-at-complex-searches/)

[Orson Scott Card](https://sms4smile.com/quotes/author/orson-scott-card/)

> [“It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures.”](https://sms4smile.com/quotes/alan-j-perlis/it-is-better-to-have-100-functions-operate-on-one-data-structure-than-2/)

[Alan J. Perlis](https://sms4smile.com/quotes/author/alan-j-perlis/)

> [Generally, the craft of programming is the factoring of a set of requirements into a a set of functions and data structures.](https://sms4smile.com/quotes/douglas-crockford/generally-the-craft-of-programming-is-the-factoring-of-a-set-of/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [“Services interact with their peers strictly through APIs and thus don’t share data structures, database schemata, or other internal representations of objects. Bounded”](https://sms4smile.com/quotes/gene-kim/services-interact-with-their-peers-strictly-through-apis-and-thus-don/)

[Gene Kim](https://sms4smile.com/quotes/author/gene-kim/)

> [A data structure is just a stupid programming language.](https://sms4smile.com/quotes/bill-gosper/a-data-structure-is-just-a-stupid-programming-language/)

[Bill Gosper](https://sms4smile.com/quotes/author/bill-gosper/)

> [It's easy to make mistakes that only come out much later, after you've already implemented a lot of code. You'll realize Oh I should…](https://sms4smile.com/quotes/guido-van-rossum/it-s-easy-to-make-mistakes-that-only-come-out-much-later-after-you-ve/)

[Guido van Rossum](https://sms4smile.com/quotes/author/guido-van-rossum/)

> [Bad programmers worry about the code. Good programmers worry about data structures and their relationships.](https://sms4smile.com/quotes/linus-torvalds/bad-programmers-worry-about-the-code-good-programmers-worry-about/)

[Linus Torvalds](https://sms4smile.com/quotes/author/linus-torvalds/)

> [Data dominates. If you've chosen the right data structures and organized things well, the algorithms will almost always be self-evident. Data structures, not algorithms,…](https://sms4smile.com/quotes/rob-pike/data-dominates-if-you-ve-chosen-the-right-data-structures-and/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

[Browse all 17 Data structures quotes ](https://sms4smile.com/quotes/about/data-structures/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "“Other than when dealing with exception-unsafe legacy code (which we'll discuss later in this Item), offering no exception safety guarantee should be an option only if your crack team of requirements analysts has identified a need for your application to leak resources and run with corrupt data structures. As”",
            "creator": {
                "@type": "Person",
                "name": "Scott Meyers"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/scott-meyers/other-than-when-dealing-with-exception-unsafe-legacy-code-which-we-ll/",
            "about": {
                "@type": "Thing",
                "name": "Data structures"
            },
            "@id": "https://sms4smile.com/quotes/scott-meyers/other-than-when-dealing-with-exception-unsafe-legacy-code-which-we-ll/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/74f/scott-meyers-49057_data-structures_other-than-when-dealing-with-exception-u_1290978.png",
                "contentUrl": "https://sms4smile.com/quotes/i/74f/scott-meyers-49057_data-structures_other-than-when-dealing-with-exception-u_1290978.png",
                "url": "https://sms4smile.com/quotes/i/74f/scott-meyers-49057_data-structures_other-than-when-dealing-with-exception-u_1290978.png",
                "width": 1080,
                "height": 1080,
                "caption": "“Other than when dealing with exception-unsafe legacy code (which we'll discuss later in this Item), offering…” — Scott Meyers",
                "creditText": "SMS4Smile Quotes",
                "creator": {
                    "@id": "https://sms4smile.com/quotes/#organization"
                }
            }
        },
        {
            "@type": "BreadcrumbList",
            "itemListElement": [
                {
                    "@type": "ListItem",
                    "position": 1,
                    "name": "Home",
                    "item": "https://sms4smile.com/"
                },
                {
                    "@type": "ListItem",
                    "position": 2,
                    "name": "Quotes",
                    "item": "https://sms4smile.com/quotes/"
                },
                {
                    "@type": "ListItem",
                    "position": 3,
                    "name": "Scott Meyers",
                    "item": "https://sms4smile.com/quotes/author/scott-meyers/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "“Other than when dealing with exception-unsafe...",
                    "item": "https://sms4smile.com/quotes/scott-meyers/other-than-when-dealing-with-exception-unsafe-legacy-code-which-we-ll/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/scott-meyers/other-than-when-dealing-with-exception-unsafe-legacy-code-which-we-ll/#breadcrumb"
        },
        {
            "@type": "WebSite",
            "@id": "https://sms4smile.com/quotes/#website",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "publisher": {
                "@id": "https://sms4smile.com/quotes/#organization"
            }
        },
        {
            "@type": "Organization",
            "@id": "https://sms4smile.com/quotes/#organization",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "logo": {
                "@type": "ImageObject",
                "url": "https://sms4smile.com/quotes/wp-content/themes/sq/assets/icons/icon-512.png",
                "width": 512,
                "height": 512
            }
        }
    ]
}
```
