---
title: "Accidental stacks considered harmful. — Larry Wall Quote #232 | QuotesBy.net"
description: "Accidental stacks considered harmful. — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # Accidental stacks considered harmful.

[Larry Wall](https://quotesby.net/Larry-Wall)\#232

[Programming](https://quotesby.net/Larry-Wall/programming/)[Debugging](https://quotesby.net/Larry-Wall/debugging/)[Bugs](https://quotesby.net/Larry-Wall/bugs/)[Structure](https://quotesby.net/Larry-Wall/structure/)

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9CAccidental%20stacks%20considered%20harmful.%E2%80%9D%20%E2%80%94%20Larry%20Wall%20https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F232%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9CAccidental%20stacks%20considered%20harmful.%E2%80%9D%20%E2%80%94%20Larry%20Wall&url=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F232%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F232%2F)

## About this quote

What does it mean?The speaker warns that accidental stacks—unintended data structures—can cause problems.In plain termsUnplanned stacks are dangerous.What can you take from it?Avoid creating hidden data structures.

### Where it applies

- code reviews
- debugging sessions

### Putting it to work

- use explicit data structures
- document stack usage

### Questions to consider

- What makes a stack accidental?
- How can we detect them early?

### Another view

The statement is vague without context of what 'accidental' means.

## More from Larry Wall

1. > We don't have enough parallel universes to allow all uses of all junction types--in the absence of quantum computing the combinatorics are not in our favor...

[Permalink to quote \#231](https://quotesby.net/Larry-Wall/231/ "Permalink to quote 231")
2. > I try not to confuse roles and traits in my own life. Being the Perl god is a role. Being a stubborn cuss is a trait. :-)

[Permalink to quote \#233](https://quotesby.net/Larry-Wall/233/ "Permalink to quote 233")
3. > : No comment, since this is still hovering (see Larry's reply). Flutter, flutter.

[Permalink to quote \#230](https://quotesby.net/Larry-Wall/230/ "Permalink to quote 230")

## Related quotes

1. > We toast the Lisp programmer who pens his thoughts within nests of parentheses.

[Alan Perlis](https://quotesby.net/Alan-Perlis)[Alan Perlis quote \#2](https://quotesby.net/Alan-Perlis/2/ "Permalink to quote 2")
2. > Beware of bugs in the above code; I have only proved it correct, not tried it.

[Donald Knuth](https://quotesby.net/Donald-Knuth)[Donald Knuth quote \#2](https://quotesby.net/Donald-Knuth/2/ "Permalink to quote 2")
3. > There are two ways to write error-free programs; only the third one works.

[Alan Perlis](https://quotesby.net/Alan-Perlis)[Alan Perlis quote \#25](https://quotesby.net/Alan-Perlis/25/ "Permalink to quote 25")

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "Accidental stacks considered harmful.",
    "url": "https://quotesby.net/Larry-Wall/232/",
    "spokenByCharacter": {
        "@type": "Person",
        "name": "Larry Wall"
    }
}
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://quotesby.net/"
        },
        {
            "@type": "ListItem",
            "position": 2,
            "name": "Authors",
            "item": "https://quotesby.net/authors/"
        },
        {
            "@type": "ListItem",
            "position": 3,
            "name": "Larry Wall",
            "item": "https://quotesby.net/Larry-Wall"
        },
        {
            "@type": "ListItem",
            "position": 4,
            "name": "Quote #232",
            "item": "https://quotesby.net/Larry-Wall/232/"
        }
    ]
}
```
