Conversation

Quote Tweet
While the checkmarks are away, let's play a little game: which programming language is this? template<class T> struct Vector { Box<Elements<T>>* elements; unsigned length; }
Show this thread
5
29
Pretty sure `template` was just being used for illustration purposes in those examples? Realise it's a bit unclear from the blog post though. That was in 2013 and I definitely don't remember that being there at the time!
3
Classes were added with the `class` keyword in 0.3 (when I started looking into Rust), but removed in 0.4 afaik (when I started using Rust). Was never on type parameters like in C++ templates though.
1
I still want to find the old 0.3 docs - I remember being terrified by these things called 'argument' modes, which looked like `&&`, `&`, `++`, `+`, etc. Can't find them now though.
1