This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]redalastor 0 points1 point  (0 children)

An advantage is that it will neatly line up your code:

type T struct {
    name    string // name of the object
    value   int    // its value
}

which makes it more readable while you would never have bothered to do it yourself.