|
|
|
|
|
by kortex
1439 days ago
|
|
> I suspect the lack of sum types in many static languages are partially responsible for the popularity of dynamic ones. I can totally see this. I started writing a small cli tool in Go, and despite knowing way less Rust, I switched to it and was able to make a lot better progress at first due to pattern matching and result types. It was just so much easier/more ergonomic to write a simple parser. The Go code was a mishmash of ugly structs and tons of null checking and special casing. |
|