[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How many spaces a tab is worth

This page is part of the web mail archives of SRFI 49 from before July 7th, 2015. The new archives for SRFI 49 contain all messages, not just those from before July 7th, 2015.



The draft reads:

    For this proposal, a TAB should be counted as exactly four spaces.

That is wrong. TAB is worth 8 spaces if anything. Anyway, mixing tabs
and spaces for indentation is a neverending source of confusion. There
should be features to have this cause warnings or errors. See PEP-8 for
how the Python people handle that issue:

   http://www.python.org/peps/pep-0008.html

HTML4 also has a warning about the tab-indentation issue:

http://www.w3.org/TR/1999/REC-html401-19991224/struct/text.html#edef-PRE

Anyway, the current proposal is is worst possible in regard to that
specific issue.

About the rest of the SRFI, I have too much a hard time understanding
the production rules to make any constructive comment, but the examples
look right to me.

-- 
                                                            -- ddaa