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

Do you have some examples of this style in go? This was once a gripe of mine with go, but I have since just gotten use to the lack of clarity around types I'm working with.

I came from JavaScript so it wasn't too hard, but I was writing mostly with C when I first encounter go. With JavaScript I heavily leaned on properly named variables to understand the underlying type within the context of the code I was working on. In go however, short and nondestructive variables are common place, with the lack of types in declarations I have to reply on properly named functions and general context of the code I'm working in.

I'd be curious to see what go looks like with explicit vars for most things.



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

Search: