Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
za3faran
45 days ago
|
parent
|
context
|
favorite
| on:
Go is an ideal language for AI-assisted software e...
Up until quite recently, golang lacked generics, so `interface{}` was passed everywhere. It does not have typesafe enums (you can pass integers and it will compile). It has no way of declaring immutable structures. It does not have pattern matching.
Mawr
45 days ago
[–]
> It does not have typesafe enums (you can pass integers and it will compile).
sigh
. Sure, if you literally pass an untyped, hard-coded integer, like so:
foo(100)
then, and only then will it compile. However, this won't:
a := 100 foo(a)
How horrific.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: