These are chat archives for dry-rb/chat

Jul 2016
Jeff Dickey
Jul 30 2016 08:08

ok, folks; basic question.

Say I have the following:

Dry::Types.register 'range', Dry::Types::Definition[Range].new(Range)
Dry::Types.register 'strict.range',
                    Dry::Types['range'].constrained(type: Range)

Are there any initialisations of Types::Range that would not be valid for Types::Strict::Range ?

or are the two functionally identical?
It seems to me that Types::Whatever and Types::Strict::Whatever would be identical for any simple scalar type (or range). Correct?