3 ms·
How about lining things up? Take a long function call where you want to wrap the params: hello( world, solarsytem, universe
by philjackson 13y ago
How about lining things up? Take a long function call where you want to wrap the params:
hello( world,
solarsytem,
universe
... );
You can't if you just use tabs - you would have to mix tabs and spaces.
- Pxtl 13y agoUse hello( world, solarsytem, universe ); which doesn't require perfect line-up with the first entry, and is still clear to the reader what's going on.
- MikeTLive 13y agothis is how i code. 1st pass: func( ); 2nd pass: put in the args. this ensures the closing paren immediately and makes it possible to comment out things that are inside the parens.
- zobzu 13y agoso thats the reason why people are set on using spaces? man :(