4 ms·
I feel the opposite way. I always use named return values because I feel the code is less cluttered and less magic. I just look at the first line of a function
by im_dario 9y ago
I feel the opposite way. I always use named return values because I feel the code is less cluttered and less magic. I just look at the first line of a function and I know what variables are used as return.
I think they are pretty explicit and simpler, because there are defined in a single point of our code. Anyway, we probably have different backgrounds :)
Although it wasn't your point, what I don't like is mixing bare and named return. I think it's better to stick to one style or the other.