xumingmingv·8 anni fa·discussI totally agree with this one. Especially:1. It reduce the indention level, makes the code cleaner. 2. Keep the error handling cases at the top of the method, the rest of the method can be written with more ease.
xumingmingv·8 anni fa·discuss"It’s harder to reason out program flow. "-- I think this is the key cons which might lead us into nightmare.
1. It reduce the indention level, makes the code cleaner. 2. Keep the error handling cases at the top of the method, the rest of the method can be written with more ease.