Actually, it's not required by Swedish law. There would be many free speech issues with such regulation. However, the companies realize that it's in their best interest not to ignore the wishes of the people they want to do business with, so they are generally respected. Some companies who deliver the flyers independently chose to ignore this, most notably real estate agents, pizza places with home delivery and political parties.
Not delivering mail (junk or not) addressed to you would be illegal, though.
Real computer scientists like having a computer on their desk, else how could they read their mail?