Spaces after tabs only after _ & implicit line continuation.
Posted: Sat Jul 03, 2010 10:21 pm
Hi Chuck,
I am a big fan of forcing people to lay their code out consistently, so I like the no mixing of tabs and spaces rules, but I am also a big fan of vertically aligning for readability sake, and I'm finding that I'm constantly having to use the _ line continuation just to be able to vertically align code in places where implicit line continuation already applies.
I am reading all the Discussions from day one of the forums forwards, so maybe you've explained since you said "_ is the one place you can mix tabs and spaces for indentation by using spaces *after* the tabs", but searching on _ can be difficult and I haven't found it.
Since Cobra has implicit line continuation it seems that if it allowed spaces after tabs when continuing the line implicitly as well as explicitly (two places) this slight ugliness and hassle could be eliminated.
What do you think?
This example is indented with spaces so the cobra tags align it visually correctly. Just imagine there are tabs=4 + 3 spaces to align. I even feel I need to align the underscores so that they don't look ugly.
I am a big fan of forcing people to lay their code out consistently, so I like the no mixing of tabs and spaces rules, but I am also a big fan of vertically aligning for readability sake, and I'm finding that I'm constantly having to use the _ line continuation just to be able to vertically align code in places where implicit line continuation already applies.
I am reading all the Discussions from day one of the forums forwards, so maybe you've explained since you said "_ is the one place you can mix tabs and spaces for indentation by using spaces *after* the tabs", but searching on _ can be difficult and I haven't found it.
Since Cobra has implicit line continuation it seems that if it allowed spaces after tabs when continuing the line implicitly as well as explicitly (two places) this slight ugliness and hassle could be eliminated.
What do you think?
string = Regex.replace(string, _
'(".*?)<emphasis>(.*?")', _
'', _
RegexOptions.Singleline)
This example is indented with spaces so the cobra tags align it visually correctly. Just imagine there are tabs=4 + 3 spaces to align. I even feel I need to align the underscores so that they don't look ugly.