News for hackers. Stuff that matters.
Re:Safer Enums in Go by Tozen on Saturday May 14, 2022 @11:17AM (#31378774)
One of the "offshoot" or inspired by languages of Golang, is Vlang (https://vlang.io/), and the other is Odin. Vlang has both sum types and real enums. It had those, including generics, for quite a while.
Re:Safer Enums in Go by tandr on Saturday May 14, 2022 @04:04PM (#31381813)
From a first glance, Odin looks like a nice language to use! Looks like they have fixed ocd-causing idiosyncrasies of Go - "for value, index" and not the other way around, "defer" belongs to surrounding scope, and not the whole function.

Thank you!

Re:Safer Enums in Go by Tozen on Sunday May 15, 2022 @07:13AM (#31386814)
Your welcome. I keep my eye on both Odin and Vlang. And if a person has experience with Go, they offer some different features and freedoms that might have been wanted, but couldn't get. Additionally, it's not too difficult to switch among the languages as well, if one is strongly familiar with one of them.
Re:Safer Enums in Go by tandr on Tuesday May 24, 2022 @12:25AM (#31487977)
Problem is to switch people around you to use something else. Second company, second fight Java vs Go, and I am loosing again... Makes me wonder if all my efforts to learn something new are for nothing, for no real benefit.