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

point is typedefs aren't reusable at anonymous function declarations. imo that sucks. that's all i wanted to say.


You could always declare the method on the Printer type...

https://play.golang.org/p/4MG8kgGEGM


where's the anonymous function with reuse of typedef in there?




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

Search: