Killing `Ok(())` with `ok!()`

As promised, here is the link for the proposal:

Regarding the question:

If I'm not mistaken, val.(Ok) creates a closure equivalent to || Ok(val). To actually execute the function and get Ok(val), we need the trailing parentheses:val.(Ok)().

1 Like