4 ms·
Scala programmers would recognize this as the difference between () and .get(). I hope rust copied scalas syntax- its much cleaner, rather than trying to be nic
by fxfan 8y ago
Scala programmers would recognize this as the difference between () and .get(). I hope rust copied scalas syntax- its much cleaner, rather than trying to be nice to the established system languages (c/c++)
This would also free up the [] to be used for generics and avoid syntactical warts like ::<> parsin
- paulddraper 8y agoScala and C++ syntax are rather similar, no?
- steveklabnik 8y agoWe did have [] for generics, but we changed it back. It doesn't remove those warts, it moves them.