TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Indentation Style: Notable Styles

11 pointsby computerbuster3 months ago

3 comments

voidUpdate3 months ago
You'll have to pry Allman out of my cold, dead hands. My favourite bracketing style by far, and I'm very annoyed that its a syntax error in Go
评论 #43182196 未加载
评论 #43182358 未加载
评论 #43182022 未加载
评论 #43182273 未加载
评论 #43182742 未加载
评论 #43181971 未加载
评论 #43182162 未加载
rob743 months ago
Interestingly enough, the K&amp;R variant called &quot;one true brace style&quot; (<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Indentation_style#One_True_Brace" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Indentation_style#One_True_Bra...</a>) <i>is</i> the &quot;one true style&quot; that is mandatory in Go (although Go is never mentioned in the article).
评论 #43184687 未加载
eliasson3 months ago
Whitesmiths, if I remember correctly was used in Symbian C++. I remember I found it quite odd (as most things in Symbian) when I started using it. But, it grew on me and I actually thought it improved the readability.