These are chat archives for dry-rb/chat
Next-gen ruby libs! » github.com/dry-rb » website: https://dry-rb.org » forum: https://discourse.dry-rb.org
.optional.defaultseems more like a hack. Any input? https://gist.github.com/untitaker/f2b6b20ad7d1a658264c3f6a8334fa5a
strict_with_defaultsall keys are required (except defaults ofc)
x.optionalactually means something like
x | nil? I thought this was a hack because I would've thought that the wording "optional" would imply a default.
Types::Strict::Int.optionalis literally the same as
Types::Strict::Nil | Types::Strict::Int