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

wow that is horrible. none of that is intuitive, which is one of Go strength. you would need to specific learn the Go semantic of coroutine to have any chance of writing or even reading code like this.


Goroutines and channels aren't intuitive either. You learn them and become familiar with them over time, at which point they become intuitive __for you__.


actually I get it now. the issue is that OP was giving TWO different examples of use, pulling a single value versus multiple. they should have clarified.


Yes, on review, I should have made two examples instead of combining them. Thanks for persevering through my brevity and reaching understanding :)


They're totally intuitive if you were an Occam programmer.


So it's intuitive because you are familiar with those concepts. I don't see how that goes against what I said.


Yes, you need to learn language features in order to use the language, shocker!


I've written go for a year or so. That looks close to go code I look at every day. I wouldn't be surprised if it was in the language.




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

Search: