3 ms·
My opinion is that generally, implicit `this` is in many ways similar to null pointers in that it was a big design mistake that was somehow copied to to many co
by ATsch 8y ago
My opinion is that generally, implicit `this` is in many ways similar to null pointers in that it was a big design mistake that was somehow copied to to many common languages without a good reason. It adds a special case to so many things, and it could instead just be a regular function parameter and some syntactic sugar. If e.g. object.method(param) expands to Class.method(object, param), you just end up with a special case less and a more cohesive language in general. I'm very happy more modern languages like Rust seem to be taking this path.