If you got to remove one feature from #cplusplus, what would it be?
For me, comma operator.
How would you handle generics? You get to remove a feature, not replace a feature.
-
-
Exactly. How would you? :)
-
The C way is to pass around lots of pointers to functions and type-erased values, as in https://gcc.gnu.org/svn/gcc/trunk/include/hashtab.h … or even qsort(). I think of it as another form of generic programming with its own pros and cons.
- Näytä vastaukset
Uusi keskustelu -
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.