2 ms·
iota/const type enums are covered in another section: https://github.com/betty200744/ultimate-go/blob/master/Language_Specification/constant/constant.go https:/
by randomdata 6y ago
iota/const type enums are covered in another section: https://github.com/betty200744/ultimate-go/blob/master/Language_Specification/constant/constant.go https://github.com/betty200744/ultimate-go/blob/master/Langu...
The code in the section labeled Enums looks like it is straight out of the Protobuf compiler. grpc is referenced later on, so that structure pattern may be related.
- sjroot 6y agoAh, that would make sense. But then I'd have to dip into my jar of opinions on gRPC + Protobufs... TLDR: Before going down that route, you should make sure you really REALLY need them. Someone learning Go for the first time probably doesn't.