What is A*b? Is it just a formal "multiplication"?
On Thursday, June 4, 2015 at 4:54:39 PM UTC-4, Gabriel Goh wrote: > > Do there exist anonymous objects, in the same way anonymous functions > exist? > > For example, I'd like to return a object "A", without going through the > hoops of making an explicit type, which you can do (using my made up syntax) > > function createMatrix() > # create an anonymous object A > A = anonymous type > *(A,b) = A*b > \(A,b) = A\b > end > return A > end > > A = createMatrix() > A*x > A\x > > etc. > > Gabe >