Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
foldr
on April 29, 2022
|
parent
|
context
|
favorite
| on:
Lies we tell ourselves to keep using Golang
And what prevents you using them this way in Go? Just make a package and export a constructor function that does the validation.
Tomis02
on May 7, 2022
[–]
I think that was the author's point. You _can_ use them this way but it's a hassle and most people don't do it. The language itself doesn't protect you against zero-initialisation errors, even though it could.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: