Acceptable punishment?

When I was a kid I stood in the corner when I misbehaved, I was told to think about what I did and when I had calmed down or was sorry I could come out.. well I just typed in to Google "standing in corner" and apparently it's cruel and humuliating punishment