Skip to content

de-emphasize spacing vs. tabs #3759

@romainmenke

Description

@romainmenke

This line does all the work in this little program: it prints text to the screen. There are four important details to notice here.

First, Rust style is to indent with four spaces, not a tab.

I was absolutely surprised that rust has a default style format that uses spaces when that is objectively worse but I respect that some people have opinions and that those opinions won that style choice.

However this choice is given extra emphasis without context in the book.
It is the first thing you learn about the first hello world example.

I personally do not see the value in calling this out at this point in the book.
It doesn't add any value here for persons learning rust.

Imho it can be omitted.

Alternatively it would be more inclusive if the book immediately explained that this is a preference that can be overridden.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions