---
title: "Terminating blocks"
url: https://daily.dev/posts/terminating-blocks-ne4hsvwsv
source_url: https://boldlygo.tech/archive/2024-03-29-terminating-blocks
type: article
source: "Boldly Go"
published: 2026-05-31T07:49:47.556Z
updated: 2026-05-31T09:31:48.326Z
tags: ["golang"]
reading_time: 1
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Terminating blocks

**[Boldly Go](https://daily.dev/sources/boldlygo)** · 1 min read · 0 upvotes · 0 comments

## Summary

A short explainer on terminating blocks in Go, drawn from the Go language specification. A block is itself considered a terminating statement if its statement list ends in a terminating statement. This means that return and other terminating statements retain their effect regardless of how many nested code blocks wrap them.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://boldlygo.tech/archive/2024-03-29-terminating-blocks>

---

Tags: [#golang](https://daily.dev/tags/golang)

[View this post on daily.dev](https://daily.dev/posts/terminating-blocks-ne4hsvwsv)
