Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Whether to judge the line below idiomatic, or not, is a question I leave to the authorities -- but it is highly convenient, and prints "false".

  slice := []string{}
  fmt.Println(slice == nil)


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

Search: