I prefer languages that have been designed with this in mind. Kotlin in this case goes a long way.
Golang is shit IHMO. No null-safety. No sum types. I dont know what Rob Pike was thinking when he designed this. Total disregard for the last 40 years of innovation in software engineering. Sad.
https://github.com/WalkerCodeRanger/ExhaustiveMatching
I prefer languages that have been designed with this in mind. Kotlin in this case goes a long way.
Golang is shit IHMO. No null-safety. No sum types. I dont know what Rob Pike was thinking when he designed this. Total disregard for the last 40 years of innovation in software engineering. Sad.