4 ms·
I've been working in golang professionally for about a year now coming from a long career in C++. Although there is some simplicity to golang that can be apprec
by smoorman1024 6y ago
I've been working in golang professionally for about a year now coming from a long career in C++. Although there is some simplicity to golang that can be appreciated things like this below make me think that the premise of less is more is fundamentally incorrect if you cannot accomplish everything that is necessary.
https://github.com/protocolbuffers/protobuf-go/blob/master/internal/pragma/pragma.go#L29 https://github.com/protocolbuffers/protobuf-go/blob/master/i...
Specifically the last one of embedding an empty array of mutexes into a struct prevents that struct from being copied. This is something that is easily and explicitly accomplished in C++ by making the constructors private.