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

I'm not sure "provide only one way of doing things" is a core principle of C. It at least seems to have fallen to "type less" in several cases:

    i = i + 1;
    i += 1;
    i++;
    ++i;

    a[i]
    *(a + i)

    a->foo
    (*a).foo


You left out: i[a]


I considered it, but decided it would be more noise than substance in this particular list. I do like that pun, though.




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

Search: