---
title: "Well, hey, let's just make everything into a closure, and then we'll … — Larry Wall Quote #156 | QuotesBy.net"
description: "Well, hey, let's just make everything into a closure, and then we'll have our general garbage collector, installed by 'use less memory'. — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # Well, hey, let's just make everything into a closure, and then we'll have our general garbage collector, installed by 'use less memory'.

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

[Programming](https://quotesby.net/Larry-Wall/programming/)[Design](https://quotesby.net/Larry-Wall/design/)[Performance](https://quotesby.net/Larry-Wall/performance/)[Memory](https://quotesby.net/Larry-Wall/memory/)

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9CWell%2C%20hey%2C%20let%27s%20just%20make%20everything%20into%20a%20closure%2C%20and%20then%20we%27ll%20have%20our%20general%20garbage%20collector%2C%20installed%20by%20%27use%20less%20memory%27.%E2%80%9D%20%E2%80%94%20Larry%20Wall%20https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F156%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9CWell%2C%20hey%2C%20let%27s%20just%20make%20everything%20into%20a%20closure%2C%20and%20then%20we%27ll%20have%20our%20general%20garbage%20collector%2C%20installed%20by%20%27use%20less%20memory%27.%E2%80%9D%20%E2%80%94%20Larry%20Wall&url=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F156%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F156%2F)

## About this quote

What does it mean?The speaker jokes about turning everything into a closure to get a general garbage collector that uses less memory.In plain termsMake everything a closure for a memory‑saving garbage collector.What can you take from it?Beware of over‑engineering solutions for memory management.

### Where it applies

- software design
- performance tuning

### Putting it to work

- profile memory
- avoid unnecessary abstractions

### Questions to consider

- When is a closure the right tool?
- What are the trade‑offs of using closures for memory?

### Another view

Closures can add overhead and complexity.

## More from Larry Wall

1. > The code also assumes that it's difficult to misspell 'a' or 'b'. :-)

[Permalink to quote \#155](https://quotesby.net/Larry-Wall/155/ "Permalink to quote 155")
2. > People who understand context would be steamed to have someone else dictating how they can call it.

[Permalink to quote \#157](https://quotesby.net/Larry-Wall/157/ "Permalink to quote 157")
3. > Double \*sigh\*. \_04 is going onto thousands of CDs even as we speak, so to speak.

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

## Related quotes

1. > I might be able to shoehorn a reference count in on top of the numeric value by disallowing multiple references on scalars with a numeric value, but it wouldn'…

[Larry Wall](https://quotesby.net/Larry-Wall)[Larry Wall quote \#298](https://quotesby.net/Larry-Wall/298/ "Permalink to quote 298")
2. > Carlson: Give me the chronology of the kiss. How did you decide to kiss Madonna? Spears: Actually, in rehearsals it wasn't something like 'This is what we're g…

[Britney Spears](https://quotesby.net/Britney-Spears)[Britney Spears quote \#2](https://quotesby.net/Britney-Spears/2/ "Permalink to quote 2")
3. > To add speed, add lightness.

[Colin Chapman](https://quotesby.net/Colin-Chapman)[Colin Chapman quote \#4](https://quotesby.net/Colin-Chapman/4/ "Permalink to quote 4")

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "Well, hey, let's just make everything into a closure, and then we'll have our general garbage collector, installed by 'use less memory'.",
    "url": "https://quotesby.net/Larry-Wall/156/",
    "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 #156",
            "item": "https://quotesby.net/Larry-Wall/156/"
        }
    ]
}
```
