0
Завершено
Great, but it will make code execution slow.
An "else" eliminates evaluation of nested if conditions. So factoring this way will make code slow
0
На рассмотрении
Alexander 10 лет назад
Which refactoring do you refer to?
0
Madan kumar nath 10 лет назад
I was referring to "Replace Nested Conditional with Guard Clauses".
0
Alexander 10 лет назад
Nope, it won't be slower if you return the values right from these if-s instead of waiting for the final return.
0
Ответ
Завершено
Alexander 5 лет назад
Сервис поддержки клиентов работает на платформе UserEcho