---
title: "Portability should be the default. — Larry Wall Quote #171 | QuotesBy.net"
description: "Portability should be the default. — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # Portability should be the default.

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

[Software](https://quotesby.net/Larry-Wall/software/)[Portability](https://quotesby.net/Larry-Wall/portability/)

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

## About this quote

What does it mean?Portability should be assumed as the default behavior.In plain termsAssume code should be portable by default.What can you take from it?Write code that works across platforms unless a reason not to.

### Where it applies

- library development
- cross‑platform projects

### Putting it to work

- avoid platform‑specific APIs
- test on multiple systems

### Questions to consider

- When is non‑portable code justified?
- How does default portability affect performance?

### Another view

Sometimes performance or features require platform‑specific code.

## More from Larry Wall

1. > And other operators aren't so special syntactically, but weird in other ways, like 'scalar', and 'goto'.

[Permalink to quote \#170](https://quotesby.net/Larry-Wall/170/ "Permalink to quote 170")
2. > If this were Ada, I suppose we'd just constant fold 1/0 into die 'Illegal division by zero

[Permalink to quote \#172](https://quotesby.net/Larry-Wall/172/ "Permalink to quote 172")
3. > (Never thought I'd be telling Malcolm and Ilya the same thing... :-)

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

## Related quotes

1. > Portability is for people who cannot write new programs.

[Linus Torvalds](https://quotesby.net/Linus-Torvalds)[Linus Torvalds quote \#16](https://quotesby.net/Linus-Torvalds/16/ "Permalink to quote 16")
2. > Besides, including &lt;std\_ice\_cubes.h&gt; is a fatal error on machines that don't have it yet. Bad language design, there... :-)

[Larry Wall](https://quotesby.net/Larry-Wall)[Larry Wall quote \#29](https://quotesby.net/Larry-Wall/29/ "Permalink to quote 29")
3. > The way I see it, if you declare something portable, you'll always be wrong, and if you declare it non-portable, you'll always be right. :-)

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

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "Portability should be the default.",
    "url": "https://quotesby.net/Larry-Wall/171/",
    "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 #171",
            "item": "https://quotesby.net/Larry-Wall/171/"
        }
    ]
}
```
