Ask HN: What Features Do You Take From Language To Language?
Back when I was using Ruby, I got used to objects that I could add members to freely.
Now that I'm back to using c++, I find I'm using a wrapper class around a QHash for my basic data type. It seems to work amazingly well since I suddenly don't have to worry about "structure conversion hell" and instead pass a basket of arbitrary characteristics around (and I can still add guards within the wrapper class for conversion, safety etc). Essentially, I'm using the Ruby language approach of duck-typing when I need to while having the speed and libraries of c++.
Anyone else find themselves "transplanting" features of languages they've used in the past into their current favorite in a way that worked well? (Obviously, there are many ways to do this badly too).