Anyway you're making objective statements about something that's an
opinion on style. Some people indent Swift with 2 spaces which looks
gross to me. That doesn't mean it's wrong.
It seems to me that by increasing indentation from 2 spaces, many
program fragments should become more readable for most developers. You
could state some testable hypothesis about indentation width and then
perform user studies that, if they replicate, give us some objective
grounds for deciding these "style" questions.
One case for cases being at the same indentation would be that
case statements aren't really code. it's more like multiple
statements, which are not indented. Especially with how often
Switch can be used in Swift, it lessens the level of indentation for
any enclosed code, which helps to prevent as many pyramids of doom.
(I have not seen the expression "pyramids of doom" before. I like
Incidentally, I think there is a case to be made that "shortening
staircases," exiting early, and putting the opening curly brace onto the
same line as the
switch keyword should not be
left up to individual opinion.
I don't say this to rile anybody up, I just want to suggest that there's
another way to think about these issues.