I understand the ideas behind publicly talking about salary, but I don't think I could ever mention my salary publicly. I know my friends earn a lot more than me and I'm ashamed of my salary. I'd much rather have them thinking that maybe we were possibly on level footing.
When talking about money, it's not just money that matters. Social rules and emotions are in there too.