Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



“Did anyone actually ever do that or is this just a huge red herring?”

Yes people did that and still do.


Borland C++ windows toolkit back in the early nineties would do that sort of thing, if memory serves.

Really deeply convoluted OO.


And way better than MFC or ATL ever were.


Yes, 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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: