4 ms·
IMHO it's just preference - at least the last 15 years - but now propagated as a sort of common default/standard with the advent of auto code formatting tools.
by emteycz 5y ago
IMHO it's just preference - at least the last 15 years - but now propagated as a sort of common default/standard with the advent of auto code formatting tools. C# still does what you say (and practically always did - but the Mono people formatted it differently) while Java and JavaScript do the other. Before Prettier, I formatted JS code like C# - I thought it's nicer. Now I use the other because that's what Prettier does and it's usefulness greatly outweighs my preference.