Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
erik_seaberg
on Sept 19, 2023
|
parent
|
context
|
favorite
| on:
Fixing for loops in Go 1.22
Is there a way to declare any type uncopyable? This is something I always thought Ada got right.
smasher164
on Sept 19, 2023
|
next
[–]
you stick this in your struct
type noCopy struct{} func (*noCopy) Lock() {} func (*noCopy) Unlock() {}
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: