4 ms·
No (at least not in one specific OO language, namely C++). "foo->" means exactly the same thing as "(*foo)." That is, you use "." when you have an object, and
by AnimalMuppet 11y ago
No (at least not in one specific OO language, namely C++).
"foo->" means exactly the same thing as "(*foo)." That is, you use "." when you have an object, and "->" when you have a pointer to an object.
I don't know of any other OO language that uses "->". If there is one, my comments here probably do not apply to it...
(Or were you talking about the "." as used in OO, compared with the "->" as used in Clojure? If so, disregard this comment...)
- icebraining 11y ago(Or were you talking about the "." as used in OO, compared with the "->" as used in Clojure? If so, disregard this comment...) I'm afraid I was :)