Struct with default value
examples/struct/with_default_value.cr
struct Person property name : String = "" property email : String? end prs = Person.new p! prs p! prs.name p! prs.email prs.name = "Foo" prs.email = "new@foo.bar" p! prs.name p! prs.email
prs # => Person(@name="", @email=nil) prs.name # => "" prs.email # => nil prs.name # => "Foo" prs.email # => "new@foo.bar"