4 ms·
I agree about compound statements, but I think most people will use the tuple assignment style, especially when its simply initializing variables. There is no
by brent 18y ago
I agree about compound statements, but I think most people will use the tuple assignment style, especially when its simply initializing variables. There is no reason to expand it beyond one line.
- snprbob86 18y agoThere is a reason: it reduces the reading distance from variable to initial value. It also reduces the amount of effort you need to exert to map them to each other. This is especially true when you are using () which impact the meaning of ','. There's also no reason to keep it on one line :-) Newlines and equal signs are cheap; go wild!