Hacker News new | past | comments | ask | show | jobs | submit login
Early Impressions of Rust from a Go Programmer (coded.io)
17 points by belak on Feb 27, 2020 | hide | past | favorite | 4 comments

Very nice write up. I liked the point that Result and Option types would fit nicely into Go and totally agree. Now that I've used rust, languages without Result / Option / match expressions feel weak and dangerous.

> Explicit interfaces. In Go, you cannot have multiple functions with the same name. Because of how this interacts with implicit interfaces, if two interfaces you need to implement require a method with the same name, it gets very hard to manage. Normally this is not an issue, but I also like being explicit about things.

This was recently fixed in Go 1.14: https://golang.org/doc/go1.14#language

Oh cool, I missed this in the 1.14 release notes. This partially fixes it, but it's not easy to implement multiple interfaces with overlapping functions because you still can't implement multiple functions on the same type with the same name.

nice article!

Applications are open for YC Winter 2023

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