3 ms·
> Adder AA; A=AA.Add(B,C) Did anyone actually ever do that or is this just a huge red herring? Also, the above looks more like a data flow language where adde
by seanmcdirmid 8y ago
> Adder AA; A=AA.Add(B,C)
Did anyone actually ever do that or is this just a huge red herring?
Also, the above looks more like a data flow language where adders are necessarily components in the wiring diagram (try building a CPU without adders!).
Add can be a virtual method on B (so B.add(C)), but then you really want Dylan-esque multidispatch on both B and C. But those kind of debates fell out of style with the 90s.
- worik 8y agoBorland C++ windows toolkit back in the early nineties would do that sort of thing, if memory serves. Really deeply convoluted OO.
- pjmlp 8y agoAnd way better than MFC or ATL ever were.
- maxxxxx 8y ago“Did anyone actually ever do that or is this just a huge red herring?” Yes people did that and still do.
- jeltz 8y agoYes, it was a real issue. I have once had the misfortune to have to work on such a project, it was the by far hardest legacy code base to understand of any I have seen (even compared to those written be self taught PHP guys or those from academia).