r/linux • • Apr 14 '21

Kernel [RFC] Rust support in the Linux kernel

https://lkml.org/lkml/2021/4/14/1023
608 Upvotes

316 comments sorted by

View all comments

Show parent comments

25

u/Unicorn_Colombo Apr 14 '21

I will take default 4-pace identation any time, thank you.

I had to wade through code that used what it looked like a random indentation. There was 3, 4, 7 and probably others. And that was Python of all things.

18

u/jarfil Apr 15 '21 edited May 12 '21

CENSORED

5

u/inamestuff Apr 15 '21

Tab with a width of 4 is more modular, if your preference changes while time passes by you can just set a different width in the editor settings without touching the source code.

Tab are a very powerful yet simple abstraction that represents an indentation level. Using whatever number of spaces to indent code is just like using <div>s all over your HTML instead of semantic tags like <button>s.