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

C has multiple namespaces too!

  foo:; struct foo *foo;


Goto labels:

   {
      int x;
   x:
      goto x;
   }
Macros are all in one namespace, but a function-like macro won't replace an identifier not followed by an opening paren:

   #define mac(x)
   mac("abc")  /* disappears */
   int mac;    /* unaffected */




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: