Gold Standard

Can anyone explain why going back to the gold standard is a bad idea?

Not being petty. Just genuinely curious as to why lots of people oppose this so vehemently, especially when it was brought up recently in another post.

My understanding of advanced monetary theories are very basic, but pegging the value of your currency to an inflation-proof asset like gold sounds like a good idea no?

Thanks in advance!