Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
falsedan
on May 6, 2019
|
parent
|
context
|
favorite
| on:
Clear is better than clever [pdf]
json.Unmarshall takes a pointer as its second parameter. In (1), a pointer to thing is created using &. In (2), thing is already a pointer and can be passed as-is.
They're semantically the same. The type of thing isn't, but that's syntax.
Consider applying for YC's Summer 2025 batch! Applications are open till May 13
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
They're semantically the same. The type of thing isn't, but that's syntax.