literal icon indicating copy to clipboard operation
literal copied to clipboard

`Literal::Some` and `Literal::Nothing` should implement `#value_or_raise!` and deprecate `value`

Open joeldrapper opened this issue 2 years ago • 1 comments

#value_or_raise! is so much more explicit about the risks of calling it.

joeldrapper avatar Sep 11 '23 08:09 joeldrapper

The problem is we need to keep the value method around for internal unsafe comparisons. It should probably just be renamed to __value__.

joeldrapper avatar Sep 15 '23 09:09 joeldrapper