Scala’s coding style advised to use 2 spaces of indentation, but that was before Scala 3’s optional braces, which introduces significant indentation. It’s time for an upgrade of the coding style.
I personally don’t dislike the new syntax, it does away with a lot of visual clutter and works quite well in practice (though editors could arguably support it better). The bigger issue is that different projects might have different coding styles and so one gets exposed to both no matter one’s preference.
Matters of taste are difficult to argue with!
I personally don’t dislike the new syntax, it does away with a lot of visual clutter and works quite well in practice (though editors could arguably support it better). The bigger issue is that different projects might have different coding styles and so one gets exposed to both no matter one’s preference.