I was taught salary and money in general is private, don't ask, don't tell
When I was young and working as a department manger at a department store I saw a salary chart on the store managers desk one day and I checked it out. There were 3 of us in charge of similar size departments. I was a very young lady and the other 2 people were about 30 years older than me. The older lady made twice what I did, and the man made 3 times what I did. They had more experience than me, obviously, still I thought the differences were too large, didn't make sense, and I was not happy
So I changed careers. I worked in a medical lab where the director had everyones salary posted on the wall behind his desk. It took up the entire wall and was in LARGE print. This was in the 1970s. That was interesting. You could really see how education, experience, luck, and gender effected everyone's salary. The director was always happy to discuss salaries for the different jobs. Eventually I decided I couldn't make enough money at the lab - I didn't have enough education and I was the wrong gender
So, I went back to college and got another techincal degree. I was lucky and got my dream job with my dream company. The company didn't have a 'rule' that salary couldn't be discussed, but it wasn't encouraged and finding out the salary range for your own job and other jobs was (and still is) secretive. I made 3 good friends, 2 women and 1 man, same education, who started the same month I did. We discussed salary. We were all hired with the same starting salary. First raise after 6 months, the women all received the same percentage, the man received 1% more. First promotions, all within a month or two, the same thing happened again. I thought, hmmm, this is how men eventually make so much more. After a couple years we didn't discuss salary any longer. I guess you could say it caused 'too much comparing, critiquing and hostility'

I wouldn't be surprised at all if the man made 25% or more than me today and we still have comparable positions. At this point in my life my salary is far down on my list of important things, but still its better that I don't know what he makes!
I think my parents had the right idea. Its the same thing I taught my kids. Not sure how I would feel if my salary was public knowledge on the internet or in the paper
