| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |
Date: Tue, 15 Aug 1995 23:17:21 -0500 (CDT) From: "Thomas H. Moog" <tmoog@mcs.com> To: java-interest@java.sun.com In-Reply-To: <199508152322.QAA09326@webrunner.neato.org> I think that the discussion of operator overloading is mixing up two separate issues (1) infix notation and (2) reuse of builtin operator symbols. To use an earlier example in which a,b, and c are strings: 1. a = b + c infix with reuse of symbols 2. a=b.concat(c) 3. a=concat(b,c) 4. a=b .concat. c infix w/o reuse of operator symbol How difficult would it be to have infix notation without reuse of operator symbols ? I think using alpha infix operator symbols would reduce the desire to overload operators like "+". Perhaps C++ programmers overload "+" because there are no user definable infix operators. Tom Moog - Note to Sun employees: this is an EXTERNAL mailing list! Info: send 'help' to java-interest-request@java.sun.com
| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |