Post

I’d initially say it should be scoped to the else block too, because if the custom truthy-ness is false, the rest of the object might contain an error message which could be useful. But then I suppose for that use case, sticking to the current syntax makes more sense.

0 reposts0 likes

I’m not 100% sold on my opinion here. Without the custom check, I’d immediately say scope to `if` block only because you most likely wouldn’t do anything with a falsy value. So yeah, sticking to the new rust behaviour of else being out of scope is probably what i’d say is better