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

Ah now I get it, yes you're right, they behave the same.

Ironically, just today I read that in the next release they will add some JSON annotation to distinguish nil slices (omitzero): https://tip.golang.org/doc/go1.24



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

Search: