3 ms·
The old "self" was a reference type like C++—it behaved like a pointer but wasn't really a pointer (you didn't use * to access it). This was unneeded complexity
by pcwalton 14y ago
The old "self" was a reference type like C++—it behaved like a pointer but wasn't really a pointer (you didn't use * to access it). This was unneeded complexity in the language.
It was also not obvious that the implicit self type was immutable.
Finally, it let us remove "static" in a few places ("static" methods), reducing noise. It makes type implementations (impl Type { ... }) the same as regular modules, except that you can use "&self" and friends to declare methods.