---
title: "Meaning & Key Takeaway of: Go does not permit unused local…"
description: "\"“Go does not permit unused local variables, so this would result in a compilation error.”\" — Alan A. A. Donovan"
image: "https://sms4smile.com/quotes/i/2ab/alan-a-a-donovan-81193_technology_go-does-not-permit-unused-local-variable_504133.jpg"
---

#  Go does not permit unused local variables, so this would…

![“Go does not permit unused local variables, so this would result in a compilation error.” quote by Alan A. A. Donovan](https://sms4smile.com/quotes/i/2ab/alan-a-a-donovan-81193_technology_go-does-not-permit-unused-local-variable_504133.jpg)   [Download](https://sms4smile.com/quotes/i/2ab/alan-a-a-donovan-81193_technology_go-does-not-permit-unused-local-variable_504133.jpg) [Open image](https://sms4smile.com/quotes/i/2ab/alan-a-a-donovan-81193_technology_go-does-not-permit-unused-local-variable_504133.jpg)

> ““Go does not permit unused local variables, so this would result in a compilation error.””

Alan A. A. Donovan

## About This Quote

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

Go enforces variable usage to prevent dead code, causing compile errors if ignored.

**In simple terms:** Unused variables trigger errors, ensuring clean code.

Key Takeaway

Write purposeful code and remove unused parts.

Themes

programming software quality efficiency

Mood

technical practical

Type

educational instructional

When to use this quote

- code reviews
- debugging sessions
- CI pipelines
- learning Go

Key Concepts

computer science static analysis language design

Questions to Reflect On

- Is the rule always beneficial?
- How to balance strictness with flexibility?

A Different Perspective

Strictness may hinder rapid prototyping.

★ ★ ★ ★ ★   No ratings yet

[Technology](https://sms4smile.com/quotes/about/technology/) [Unused](https://sms4smile.com/quotes/about/unused/)

## Related quotes

> [“JavaScript creates all local variables at the beginning of a function whether you declare them or not (this is called “hoisting” and we’ll come…](https://sms4smile.com/quotes/eric-freeman/javascript-creates-all-local-variables-at-the-beginning-of-a-function/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [Unused rooms are such bad feng shui, really bad energy.](https://sms4smile.com/quotes/alexandra-stoddard/unused-rooms-are-such-bad-feng-shui-really-bad-energy/)

[Alexandra Stoddard](https://sms4smile.com/quotes/author/alexandra-stoddard/)

> [Before the 1970s, banks were banks. They did what banks were supposed to do in a state capitalist economy: they took unused funds from…](https://sms4smile.com/quotes/noam-chomsky/before-the-1970s-banks-were-banks-they-did-what-banks-were-supposed/)

[Noam Chomsky](https://sms4smile.com/quotes/author/noam-chomsky/)

> [I've heard Braggadocio about excess baggage charges, multiple unused hotel rooms, and rental cars held unused for long periods of time, which makes me…](https://sms4smile.com/quotes/peter-menzel/i-ve-heard-braggadocio-about-excess-baggage-charges-multiple-unused/)

[Peter Menzel](https://sms4smile.com/quotes/author/peter-menzel/)

> [“Things unused burden and beset.”](https://sms4smile.com/quotes/goethe/things-unused-burden-and-beset/)

[Goethe](https://sms4smile.com/quotes/author/goethe/)

> [Wealth unused might as well not exist.](https://sms4smile.com/quotes/aesop/wealth-unused-might-as-well-not-exist/)

[Aesop](https://sms4smile.com/quotes/author/aesop/)

> [To hunger for use and to go unused is the worst hunger of all.](https://sms4smile.com/quotes/lyndon-b-johnson/to-hunger-for-use-and-to-go-unused-is-the-worst-hunger-of-all/)

[Lyndon B. Johnson](https://sms4smile.com/quotes/author/lyndon-b-johnson/)

> [An unused life is an early death.](https://sms4smile.com/quotes/johann-wolfgang-von-goethe/an-unused-life-is-an-early-death/)

[Johann Wolfgang von Goethe](https://sms4smile.com/quotes/author/johann-wolfgang-von-goethe/)

> [A powerful new idea can kick around unused in a company for years, not because its merits are not recognized, but because nobody has…](https://sms4smile.com/quotes/theodore-levitt/a-powerful-new-idea-can-kick-around-unused-in-a-company-for-years-not/)

[Theodore Levitt](https://sms4smile.com/quotes/author/theodore-levitt/)

> [I'm kind of floating out there as an artist. I'm in a safe place where I can play a girlfriend or a best friend…](https://sms4smile.com/quotes/nicole-ari-parker/i-m-kind-of-floating-out-there-as-an-artist-i-m-in-a-safe-place-where/)

[Nicole Ari Parker](https://sms4smile.com/quotes/author/nicole-ari-parker/)

> [“You cannot shine if you are unused, for then you will rust and deflate.”](https://sms4smile.com/quotes/phindiwe-nkosi/you-cannot-shine-if-you-are-unused-for-then-you-will-rust-and-deflate/)

[Phindiwe Nkosi](https://sms4smile.com/quotes/author/phindiwe-nkosi/)

> [I intended to give you some advice, but now I remember how much is left from last year unused.](https://sms4smile.com/quotes/george-harris/i-intended-to-give-you-some-advice-but-now-i-remember-how-much-is/)

George Harris

> [Power unused is power useless.](https://sms4smile.com/quotes/gloria-feldt/power-unused-is-power-useless/)

[Gloria Feldt](https://sms4smile.com/quotes/author/gloria-feldt/)

> [There's a lot of potential that goes unused in places like South Central L.A., a lot of brilliant, smart people who just don't have…](https://sms4smile.com/quotes/ice-cube/there-s-a-lot-of-potential-that-goes-unused-in-places-like-south/)

[Ice Cube](https://sms4smile.com/quotes/author/ice-cube/)

> [The only waste of human resources is letting them go unused.](https://sms4smile.com/quotes/mark-victor-hansen/the-only-waste-of-human-resources-is-letting-them-go-unused/)

[Mark Victor Hansen](https://sms4smile.com/quotes/author/mark-victor-hansen/)

## More by Alan A. A. Donovan

> [“Exercise 1.3: Experiment to measure the difference in running time between our potentially inefficient versions and the one that uses strings.Join. (Section 1.6 illustrates part of…](https://sms4smile.com/quotes/alan-a-a-donovan/exercise-1-3-experiment-to-measure-the-difference-in-running-time/)

Alan A. A. Donovan

> [“The first form, a short variable declaration, is the most compact, but it may be used only within a function, not for package-level variables.”](https://sms4smile.com/quotes/alan-a-a-donovan/the-first-form-a-short-variable-declaration-is-the-most-compact-but/)

Alan A. A. Donovan

Explore all 3 Alan A. A. Donovan quotes

## More Technology quotes

> [But we are convinced that if we are to play a meaningful role nationally, and in the community of nations, we must be second…](https://sms4smile.com/quotes/vikram-sarabhai/but-we-are-convinced-that-if-we-are-to-play-a-meaningful-role/)

[Vikram Sarabhai](https://sms4smile.com/quotes/author/vikram-sarabhai/)

> [“This story is not at all an uncommon one in tech circles, including gaming. The popular notion is that women who get ahead must…](https://sms4smile.com/quotes/bailey-poland/this-story-is-not-at-all-an-uncommon-one-in-tech-circles-including/)

[Bailey Poland](https://sms4smile.com/quotes/author/bailey-poland/)

> [The time that one gains cannot be accumulated in a storehouse; it is contradictory to want to save up existence, which, the fact is,…](https://sms4smile.com/quotes/simone-de-beauvoir/the-time-that-one-gains-cannot-be-accumulated-in-a-storehouse-it-is/)

[Simone de Beauvoir](https://sms4smile.com/quotes/author/simone-de-beauvoir/)

> [“The metaprogrammer who uses one, or especially several, applications as components in a larger system. This is the user whose needs are poorly met…](https://sms4smile.com/quotes/frederick-p-brooks-jr/the-metaprogrammer-who-uses-one-or-especially-several-applications-as/)

[Frederick P. Brooks Jr](https://sms4smile.com/quotes/author/frederick-p-brooks-jr/)

> [Advances in technology will continue to reach far into every sector of our economy. Future job and economic growth in industry, defense, transportation, agriculture,…](https://sms4smile.com/quotes/christopher-bond/advances-in-technology-will-continue-to-reach-far-into-every-sector/)

[Christopher Bond](https://sms4smile.com/quotes/author/christopher-bond/)

> [“Economic growth continued by means of a succession of new products which found growing and ultimately massive demand. Some of the new products were…](https://sms4smile.com/quotes/edward-a-hudson/economic-growth-continued-by-means-of-a-succession-of-new-products/)

[Edward A. Hudson](https://sms4smile.com/quotes/author/edward-a-hudson/)

> [I had an idea for a technologically advanced luxury watch. I got involved in digital art and neon painting and put on shows of…](https://sms4smile.com/quotes/giorgio-moroder/i-had-an-idea-for-a-technologically-advanced-luxury-watch-i-got/)

[Giorgio Moroder](https://sms4smile.com/quotes/author/giorgio-moroder/)

> [What it comes down to for me is this: Will the technologies of communication in our culture, serve to enlighten us and help us…](https://sms4smile.com/quotes/roger-waters/what-it-comes-down-to-for-me-is-this-will-the-technologies-of/)

[Roger Waters](https://sms4smile.com/quotes/author/roger-waters/)

> [The display is the computer.](https://sms4smile.com/quotes/jen-hsun-huang/the-display-is-the-computer/)

Jen-Hsun Huang

> [We became Homo sapiens not that long ago, from the scientific perspective, and we've retained a lot of our beast nature. We've done all…](https://sms4smile.com/quotes/wangechi-mutu/we-became-homo-sapiens-not-that-long-ago-from-the-scientific/)

[Wangechi Mutu](https://sms4smile.com/quotes/author/wangechi-mutu/)

> [The reason that Apple is able to create products like iPad is because we always try to be at the intersection of technology and…](https://sms4smile.com/quotes/steve-jobs/the-reason-that-apple-is-able-to-create-products-like-ipad-is-because/)

[Steve Jobs](https://sms4smile.com/quotes/author/steve-jobs/)

> [I just feel like everybody stays on their phone nowadays. People will go to a party and everybody is on their phone, and you…](https://sms4smile.com/quotes/snow-tha-product/i-just-feel-like-everybody-stays-on-their-phone-nowadays-people-will/)

[Snow Tha Product](https://sms4smile.com/quotes/author/snow-tha-product/)

> [“If Amazon’s dream of a world without gatekeepers becomes reality, then the company itself will become a powerful gatekeeper.”](https://sms4smile.com/quotes/evgeny-morozov/if-amazon-s-dream-of-a-world-without-gatekeepers-becomes-reality-then/)

[Evgeny Morozov](https://sms4smile.com/quotes/author/evgeny-morozov/)

> [Real breakthroughs are not found because you want to develop some new technology, but because you are curious and want to find out how…](https://sms4smile.com/quotes/anton-zeilinger/real-breakthroughs-are-not-found-because-you-want-to-develop-some-new/)

[Anton Zeilinger](https://sms4smile.com/quotes/author/anton-zeilinger/)

> [The most fundamental question we can ever ask ourselves is whether or not the universe we live in is friendly or hostile.](https://sms4smile.com/quotes/albert-einstein/the-most-fundamental-question-we-can-ever-ask-ourselves-is-whether-or/)

[Albert Einstein](https://sms4smile.com/quotes/author/albert-einstein/)

[Browse all 18,164 Technology quotes ](https://sms4smile.com/quotes/about/technology/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "“Go does not permit unused local variables, so this would result in a compilation error.”",
            "creator": {
                "@type": "Person",
                "name": "Alan A. A. Donovan"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/alan-a-a-donovan/go-does-not-permit-unused-local-variables-so-this-would-result-in-a/",
            "about": {
                "@type": "Thing",
                "name": "Technology"
            },
            "@id": "https://sms4smile.com/quotes/alan-a-a-donovan/go-does-not-permit-unused-local-variables-so-this-would-result-in-a/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/2ab/alan-a-a-donovan-81193_technology_go-does-not-permit-unused-local-variable_504133.jpg",
                "contentUrl": "https://sms4smile.com/quotes/i/2ab/alan-a-a-donovan-81193_technology_go-does-not-permit-unused-local-variable_504133.jpg",
                "url": "https://sms4smile.com/quotes/i/2ab/alan-a-a-donovan-81193_technology_go-does-not-permit-unused-local-variable_504133.jpg",
                "width": 1080,
                "height": 1080,
                "caption": "“Go does not permit unused local variables, so this would result in a compilation error.” — Alan A. A. Donovan",
                "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": "Alan A. A. Donovan",
                    "item": "https://sms4smile.com/quotes/author/alan-a-a-donovan/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "“Go does not permit unused local...",
                    "item": "https://sms4smile.com/quotes/alan-a-a-donovan/go-does-not-permit-unused-local-variables-so-this-would-result-in-a/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/alan-a-a-donovan/go-does-not-permit-unused-local-variables-so-this-would-result-in-a/#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
            }
        }
    ]
}
```
