[rfc-i] tabs [was: sourcecode indentation]

Tony Hansen tony.l.hansen at gmail.com
Tue Feb 16 06:30:02 PST 2016


> On Feb 16, 2016, at 1:14 AM, Joe Hildebrand (jhildebr) <jhildebr at cisco.com> wrote:
> 
> I think the current situation is pretty close to 2119's "SHOULD NOT".  You SHOULD NOT put a tab character in <sourcecode>, unless it is absolutely required in the target language.  To deal with this, we could add a tabs="true" attribute to <sourcecode>, and give an error if there's an unintended tab character.

A light tweak would be tabs="8" if tabs are present and to be allowed, and error if tabs is not defined.

> Alternately, we could just say that tab-encrusted Makefile's aren't supported in an RFC, and always throw an error on tabs.  Tabs can be worked around in GNU make (https://www.gnu.org/software/make/manual/html_node/Special-Variables.html):
> 
> .RECIPEPREFIX = >
> all:
>> @echo Hello, world

Interesting.

- Tony


More information about the rfc-interest mailing list