From mboxrd@z Thu Jan 1 00:00:00 1970 From: jon@fourwinds.com (Jon Steinhart) Date: Sat, 11 Nov 2017 09:23:51 -0800 Subject: [TUHS] 80 columns ... In-Reply-To: <20171111164707.GM29606@mcvoy.com> References: <7wpo8rud7y.fsf@junk.nocrew.org> <60C45CFF-0B5C-4DAB-8936-BA27ECFFA487@gmail.com> <025501d3598f$008f19d0$01ad4d70$@ronnatalie.com> <201711101905.vAAJ5SpV031420@darkstar.fourwinds.com> <47fee362-0fde-69ff-7794-a88cf3069030@telegraphics.com.au> <201711102043.vAAKhaYB020128@darkstar.fourwinds.com> <20171110205806.GB29606@mcvoy.com> <201711102102.vAAL2tM6024205@darkstar.fourwinds.com> <20171111164021.73q4mmgq2i3xozed@matica.foolinux.mooo.com> <20171111164707.GM29606@mcvoy.com> Message-ID: <201711111723.vABHNp8K007781@darkstar.fourwinds.com> Larry McVoy writes: > > Wait, so _how_ do you like continuations to be indented? > > I do it like so > > if ((super_long_name_that_some_idiot_thought_was_smart > 1) && > (super_long_name_that_some_idiot_thought_was_smarter > 2)) { > something stupid here; > } To me, and to be clear that this is a personal preference as opposed to something factual, I would do the above as: if ((super_long_name_that_some_idiot_thought_was_smart > 1) && (super_long_name_that_some_idiot_thought_was_smarter > 2)) { something really smart here; } The one space indent shows that it's a continuation, but doesn't fool my eye into thinking that it's a block like Larry's example. There are many times that I am scrolling through code very quickly looking for block structure, and I'm optimizing for that in my eyes. There's also another personal preference above, which is that I prefer if this AND that to if this AND that Jon