Skip to content

Instantly share code, notes, and snippets.

@ymotongpoo
Created September 10, 2018 06:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ymotongpoo/b1bced8e8e825c03361c2c99d2aaaf2a to your computer and use it in GitHub Desktop.
Save ymotongpoo/b1bced8e8e825c03361c2c99d2aaaf2a to your computer and use it in GitHub Desktop.
go2 generics フィードバックの例

基本的には良いと思うが、丸括弧を使用すると可読性が下がる気がするので、次のような形に変更してもらいたい。

func Foo[type T](t T) {
  SomeProcess(T)
  AnotherProcess(T)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment