Since I started programming, I've always been taught to leave a trailing blank line at the end of my files, the reason usually being something relating to how it makes concatenated files easier to read when using
While I can't find an example right now, GitHub indicates missing blank lines at the end of a file using a red symbol, or at least, used to - so clearly it's frowned upon by a considerable chunk of the community.
Working with Go lately, I noticed that
gofmt doesn't like blank lines at the end of a file, and my Vim plugin removes them automatically.
Why are blank lines at the end of a file discouraged rather than enforced in Go?