What is the most idiomatic way to construct structs with complex default values?

I personally don’t think this would be nice as it would mean coming across a wild %Foo{} means there could be side-effects. I’m perfectly happy with status quo where %Foo{} means “static thing I’m allow to manipulate” and Foo.new() means “I’m special, please let me construct myself!”.

1 Like