Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pcwalton
on April 28, 2014
|
parent
|
context
|
favorite
| on:
Leaving Go
You can write that in C though.
typedef int foo; foo main() { foo foo = 0; return foo; }
tptacek
on April 28, 2014
[–]
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: