|
|
|
|
|
by scotty79
622 days ago
|
|
I think the problem is that different data containers have completely different interfaces. If getting a filed of your object had the same syntax as getting a value from a dict you could easily replace dicts with smarter, more rigid types at any point. My dream is a language that has the containers share as much interface as possible so you can easily swap them out according to your needs without changing most of the code that refers to them. Like easily swap dict for BTreeMap or Redis. I think the closest is Scala but it fallen out of favor before I had a chance to know it. |
|