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

You can write that in C though.

    typedef int foo;

    foo main() {
        foo foo = 0;
        return foo;
    }


You can do the same thing in Golang by renaming the import that clashes with your preferred variable name. Nobody does it, though, because it's not worth the trouble.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: