Hello,
I'm surprised by the result of this code :
(if-let [{errors :errors} {}]
errors
true) => nil
I would have expected the result to be 'true'.
As indicated by the result, 'errors' evaluates to nil, but still it's the 'then' arm of the 'if' that is evaluated.
The guide on destructuring state that "You can utilize destructuring anywhere that there is an explicit or implicit let binding.", so I'm a bit puzzled.
Please, enlighten me. Thanks !