Get the latest tech news

The Tabs vs. Spaces war is over, and spaces have emerged victorious


The great indentation war is over and it seems like we have a clear winner.

Languages such as Go, Odin, Hare, and Assembly explicitly recommend or rely on tabs, while C and C++ often leave indentation style to the discretion of individual projects or organizations, resulting in a mix of conventions. However, the prevailing preference for spaces reflects a broader trend in standardization, much like the global shift toward the metric system or the dominance of right-hand traffic, regardless of any perceived advantages offered by the alternatives. And while there are specific domains, such as aviation or seafaring, where systems like the imperial unit still prevail over the metric, the world at large has gradually converged on a common standard.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of War

War

Photo of tabs

tabs

Photo of Spaces

Spaces

Related news:

News photo

'Call of Duty' Maker Goes To War With 'Parasitic' Cheat Developers in LA Federal Court

News photo

South Park to stream on Paramount+ after bidding war

News photo

War on Hidden Motors Goes Undercover