Hacker News new | ask | show | jobs
by fxfan 2716 days 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

2 comments

We did have [] for generics, but we changed it back.

It doesn't remove those warts, it moves them.

Scala and C++ syntax are rather similar, no?