Skip to content

Add style notes about pointer constructors and byte literals

Jacob Vosmaer requested to merge jv-style-things into master

In a recent code review I found myself arguing that we prefer some things on style grounds. This MR adds those things to STYLE.md.

  • don't use new(Foo), use &Foo{}
  • don't use "\000", use "\x00"

Merge request reports

Loading