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

> If OCaml/StandardML/Haskell/etc had anything close to the ergonomics and convenience of cargo for testing, setting up projects, adding deps, deploying them to any OS/platform, I would probably write about 30-40% less Rust.

Ahem... Excuse me, sir, do you have time to talk about our lord and savior Robert Pike?



> solid type system

Politely closes door in your face


I personally enjoy working with Go's type system even more than Rust's. For example, implicit interfaces make code reuse much easier than Rust's traits.


Lack of sum types is complete deal-breaker for me unfortunately.


There's a proposal, for what it's worth:

https://github.com/golang/go/issues/57644

Although I'm curious, what is your use case that cannot be fulfilled by interfaces, but can with sum types?


`if err != nil` is the easiest example.

Sum types allow you to express type-level OR. Structs/tuples etc are AND (product types). I like to be able to use both OR and AND at both the expression and type level.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: