2 ms·
Looking through the online docs. Here's another instead of: sig {params(new_value: T.nilable(Integer)).void} ... why not simply: sig Integer?
by geraldbauer 7y ago
Looking through the online docs. Here's another instead of:
sig {params(new_value: T.nilable(Integer)).void}
... why not simply:
sig Integer? # or
sig [Option.of(Integer)]=>[] # longest form in sruby
sig [Integer?]=>[] # same as Integer?