News for hackers. Stuff that matters.
Re:Explore the ownership system in Rust by Animats on Tuesday January 20, 2015 @01:54AM (#8915759)
Sorry. "name : type" comes from Pascal, and the Modula/Ada/Oberon family of languages continue it. Now that type expressions have become so complex, it's better to have a syntax where you know a type expression is expected. C/C++ struggle with this; they have to know which names are types just to parse. This is a pain for tools which try to parse C/C++ without reading all the include files. C originally had only built-in type names and "struct". "typedef" came later, and made the syntax context-dependent.

There are no comments on this comment yet.