Hacker News new | past | comments | ask | show | jobs | submit login

He knows it, that's why he mentions lack of null (nil) in Strings in Go as an issue when porting the code.

But depending on how the Java client uses null, "" can do just as well. It's not like you have many other options (except to add your own composite struct on top of String, or to use a guard value that's still a string).




In most cases this would probably be bad but he could also use a pointer to a string.




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

Search: