News for hackers. Stuff that matters.
Re:ISO C is increasingly moronic by latitude on Tuesday December 20, 2011 @04:14PM (#3375195)
Taking bets on when ISO C will acquire a form of templates, or taking it in even more generic direction - parametrized namespaces. Something like this (an illustrative example, don't knock me down for including val into list):

  namespace(T)
  {
    struct list
    {
       T      val;
       list * next;
       list * prev;
    };

    void append(list * l, list * i)
    {
      ...
    }
  }
Then

  list<int> * foo, * bar;
  ...
  append(foo, bar);
No need for namespace nesting, default arguments and other ++isms. Just something to replace multi-line macro blocks.
Re:ISO C is increasingly moronic by koenigdavidmj on Tuesday December 20, 2011 @09:04PM (#3376072)
Why not just use C++ without namespace nesting, default arguments, and other ++isms?