Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
foobiekr
on March 30, 2021
|
parent
|
context
|
favorite
| on:
Golang: Know Your 'Nil'
This property is actually great for making chains of calls where any of the intermediate objects may be missing, allowing you to short circuit.
x = A().B().C().D().E().F()
for example. Very useful when dealing with big complex trees.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
x = A().B().C().D().E().F()
for example. Very useful when dealing with big complex trees.