We considered this but the error we would raise is generic. It is much
better for you to validate afterwards and raise good error messages that
say it is missing and which value you should pass instead and what it is
used for!
On Wed, Aug 28, 2024 at 11:30 Mateusz Front
wrote:
> Hi,
>
> WDYT abo
Hi,
WDYT about adding a `strict: boolean` option to `Keyword.validate/2` that
would make it return an error if a key that doesn't have a default value
provided is absent? The returned value in case of an error could be
`{:error, unknown_keys, missing_keys}`, for example:
{:error, [], [:b]} = K