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

Why the advice against `make` and `new`? Is it only because make sometimes requires you to know sizes in advance?


It's less noisy just to take the address of an automatic variable, like foo := &Bar{}


It's just their style, to keep things consistent.




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

Search: