[GD-General] Simulating constrained genericity in C++
Brought to you by:
vexxed72
From: Brian H. <bri...@py...> - 2001-12-26 19:17:30
|
http://sivut.koti.soon.fi/epulkkin/instructive/simulating-constrained-ge nericity.html I had no idea there was so much crap involved with generic programming. Eiffel so far seems like the best implementation I've seen, but the language (and implementations) has so many other issues that it doesn't look feasible for tool development. So back to Java and Obj-C I go =) Brian P.S. After looking at the collection classes in STL, Java, Eiffel and Obj-C, I'm surprised there hasn't been some reasonable paper written that describes the architectural decisions each made, and what language specific features enabled/denied certain aspects. Lack of constrained genericity seems like a royal bitch in C++; same with a lack of introspection, reflection and single reliable hierarchies (e.g. in Java and Obj-C you can query an object for its class; in Java all object's have a "toString" method; etc.). |