Hacker News new | ask | show | jobs
by a9h74j 1598 days ago
I've seen this in the wild and have been meaning to ask:

With the availabily of syntax highlighting including color, has anyone seen merit in skipping indentation altogether?

For that matter, what if block color or font size took the place of indentation (under control of syntax highlighting). I'll have to try it by hand.

1 comments

Code has evolved towards smaller indentation: 2 spaces instead of 4. We might see 1.

However, we have more async stuff than ever before. Heavy nesting is frequent.

And then you have the weird new imperative UI stuff like Flutter/Jetpack Compose where a simple layout is brackets in brackets in brackets in brackets.

Rainbow brackets are a thing though - one of the most popular plugins in many IDEs is something that highlights different colour brackets.