Hacker News new | past | comments | ask | show | jobs | submit login

I actually like `method::<Type>()`, but I did not used to like it when I started learning Rust.

Nowadays every time I have to go back to C++ and read `method<Type>()` I need to parse whether this is `(method < Type) > ())` or something else. Luckily for me, C++ introduced the `method.template <Type>()` syntax... but over that I prefer `::<Type>`.

I also prefer ::<Type> over Scala and D's syntaxes for some reason. I find Scala syntax for this more complex, and I find D syntax too simple.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: