This is a proposal for the next version Go.

Currently gofmt formats struct fields to make the field name and type 
aligned.
However this may cause extra changes in a commit diff when one field is 
added or removed.

What I propose is to use a tab between the field name and type.
It is responsibility of the editor or html formatter to align the code.

To make the transition not disruptive I propose that:

- gofmt is updated to recognize the tab in a struct field and left it 
unchanged
- a new tool or go fix is made available to reformat existing code


Is this reasonable?


Thanks
Manlio Perillo

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/2a583797-f417-4299-9481-5d54151be5f8%40googlegroups.com.

Reply via email to