The modern purposes of patents seem to have shifted a long way from that.
I wonder how much of ADSL's advantage is due to trade secrets (spread across many vendors) versus how much has been published as patents.
I'm not sure if that's true, or if it's more that 1) we hear more about the more egregious stuff and/or 2) something was lost in translation with that stated purpose when the world went digital.
People are far more empowered today, many more can work near the bleeding edge, and funding can be arranged in different ways than holding on to a patent.
Good luck publishing in Costa Rica. When you're not privileged you're likely to be on the losing end. So what use is it? Better keep your invention a secret, like most do, and let the next generation display themselves as the inventors. That's the alternate reality the system actually supports.
The whole system should be scrapped. Publishing is easy nowadays, just do it. Then you'd have the rights of you can prove you're the first. Anyone that wants to use can/must give you a known amount of royalties, depending on whether the invention is a unique enabler of a class of products, or just an optimization. Which it will become over time. If you don't want that, keep it a secret and build company around it.