2 ms·
In place of metaclasses and decorators, Go has some combination of "go generate", the reflect module, magic anonymous structure embedding, and structure field t
by pcwalton 11y ago
In place of metaclasses and decorators, Go has some combination of "go generate", the reflect module, magic anonymous structure embedding, and structure field tags, all of which add up to a good deal of complexity and none of which Python has. Similar story with list comprehensions vs. Go's magic builtin for loop syntaxes.
I think Go probably does have simpler semantics overall than Python does, but not by that much.