Hacker News new | past | comments | ask | show | jobs | submit login

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.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: