3 ms·
Not allowing user-defined data structures to have the same syntactic support as the "blessed" ones would have crippled C++ for many domains. Much of the reason
by pcwalton 15y ago
Not allowing user-defined data structures to have the same syntactic support as the "blessed" ones would have crippled C++ for many domains. Much of the reason C++ is used is that the flexibility of templates allows custom data structures to be maximally performance-tuned for the problem at hand.
In Rust, the goal is to use macros for data structure literals, which results in a simpler surface language and the flexibility of C++ without the confusion of templates.
- cageface 15y agoWe're just talking about syntactic sugar here. You could still roll your own string class but without operator or initializer support.