I'm trying to encourage the use of "template" to describe class and trait definitions—distinct from the types those definitions imply. I think it had bad connotations in C++, but the word is perfect for describing what it represents: every gap must be filled in on instantiation.
-
-
Got it. I think to get utter generality out of either requires knowing subtle details, but the specific difficulties are different for each case. Greater control is baked into generics use than templates use.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I think that's mostly because of the advanced template meta programming features that come with it. Mind you, template meta programming is turing complete. Imagine the "fun" stuff you can do with only templates in C++.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Did some templates in C++ for undergraduate (2005-6) They were just a pre-processor mechanism, to copy-paste code and substitute. Some syntax, but no type-checking. Only upon application you would get it. Not like Java generics. Understandable, since it precedes those.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.