Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
NKCSS
on Sept 4, 2013
|
parent
|
context
|
favorite
| on:
Learn X in Y minutes where X = Go
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".
mseepgood
on Sept 4, 2013
[–]
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:
I figured they ment to do the latter, since the next print function outputs: "it's a string".