3 ms·
I still live in Java6 land. I love inference, despite their occasional dark side. Map<String,List<Someclass>> x=new HashMap<String,List<Someclass>>(); The p
by hyperman1 8y ago
I still live in Java6 land. I love inference, despite their occasional dark side.
Map<String,List<Someclass>> x=new HashMap<String,List<Someclass>>();
The problem of modern C++ is all of old C++ comes along for the ride. Even if you write only modern code, and manage to withstand the 'this once only' siren song there are all your (ex-)colleagues writing in their own style.
One of the major plusses of rust is that it gives you basic guarantees. C++ can't do that.
- joshdev 8y agoType inference is super handy in a lot of places. The problem I've run into in the rust book and other intro docs is they almost always use type inference, which makes it harder to learn what is going on. I'd prefer they used explicit types to start and then ease into type inference.