?.let or ?.run, which is better?

It depends on your use case. If you have nesting of scopes, run can be more confusing. In your example, it can become unclear if sound or tone is coming from current scope or outer scope.

1 Like