@steveklabnik any pointers you can pass along so I can learn the rationale behind why I need to type `self.` in an impl all the time?
-
-
Replying to @JakeGoulding
@JakeGoulding yes. It can be self, &self, or &mut self. Gotta pick one. Also being explicit is nice1 reply 0 retweets 0 likes -
Replying to @steveklabnik
@steveklabnik oh, I don't mean in the fn parameter list, but in method bodies. Accessing a struct member for example.1 reply 0 retweets 0 likes -
-
Replying to @steveklabnik
@steveklabnik http://is.gd/znk7ZM is small example. I think it's mostly calling methods on members that's annoying.3 replies 0 retweets 0 likes -
Replying to @JakeGoulding
@JakeGoulding you should know that you're calling a function, rather than accessing a variable.1 reply 0 retweets 0 likes
Replying to @steveklabnik
@steveklabnik to clarify, I'd rather type `http://xpath.foo ` instead of `http://self.xpath.foo `. xpath *is* a struct variable
8:14 PM - 7 Aug 2014
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.