Hacker News new | past | comments | ask | show | jobs | submit login
Why Go is a poorly designed language (from a perspective of Go lover) (medium.com/tucnak)
13 points by tucnak on Oct 28, 2015 | hide | past | favorite | 2 comments



There has to be a better way of doing this:

  numbers = append(numbers[:2], append([]int{3}, numbers[2:]...)...)


I am afraid there isn't. In fact, it's called a "slice trick" and listed in Go wiki: https://github.com/golang/go/wiki/SliceTricks




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: