I don't know how it will work out. I don't think either side was
Dumb though. There are costs and benefits -- you just have to decide what is more important.
The EU should have remained an economic union IMO. And then Britain would surely be part. But some people decided to try to make it politically dominant.