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

Would't you expect either "it's 84" or "it's a(n) int|decimal|other_type"?

I figured they ment to do the latter, since the next print function outputs: "it's a string".



Since c is a chan int it can only be an int, no other type. You could directly write fmt.Println("it's an int").




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

Search: