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

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").




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: