golo-lang
golo-lang copied to clipboard
struct frozen copy optimization
When making a frozen copy of a frozen struct, a real shalow copy (new instance) is created, then frozen. Since the instance is already frozen, and thus immutable, the instance itself could be directly returned.