Hacker News new | ask | show | jobs
by icholy 997 days ago
`go vet` catches this.
2 comments

I use a tool called "type theory"
Keep posting about D, I'm sure it will catch on soon.
Is there a way to declare any type uncopyable? This is something I always thought Ada got right.
you stick this in your struct

    type noCopy struct{}
    func (*noCopy) Lock()   {}
    func (*noCopy) Unlock() {}