🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3924

Re: "Canadian style" of indentation

#3924
From: mfinney
Date: Tue, 05 Sep 1995 06:15
36 lines
2056 bytes
In <42gftv$lrp@caip.rutgers.edu>, halasz@caip.rutgers.edu writes:
>	That useless customarie 8-column tab-stopping:
>	Why is this aspect of the KSR33 yet with thus??

What is KSR33?

>	Fixd relation between blanks and tabs.  The editors that I know of
>	assume that with a givven tabstop-setting it is safe to equate blanks
>	and tabs.

I haven't seen a programming editor (as opposed to a word processing
editor or a system editor) in quite some time that couldn't be customized
in how it is to handle tabs.  All of the editors I have seen allow tabs to
be used or not.  Many allow incoming files converted to tabs or spaces
and the same for outgoing files.  Getting people to USE these features
can be problem, but that is different from not having the features
available.

>  If sumone has indented a line with HT,SP,SP,HT such an
>	editor feels free to make it HT,HT when its feature for indenting-
>	duplicating is uzed.

Perhaps you need a new editor? <g>

>In my code I indent with nothing but HT (I write neither Fortran nor COBOL).
>If it is C, when printed it with tab-stops at least three columns
>apart it looks all right.
>If it is Bourne-shell code, well, it needs at least six columns.

I find that indentation of two is only marginally readable (except
in hiearchial lists where two appears to be closer to optimal), three
appears to be optimal (in a fixed-width font) for readability and
four is readable, but starting to be a problem for deeply nested
structures and five or more is simply unreadable.

Michael Lee Finney
Technical Details
Message-ID: <42gpun$d1l@mujibur.inmind.com>
Path: arc1-ca.pugleaf.net!mujibur.inmind.com!usenet
References: <41g464$6vv@ruby.ucc.nau.edu> <41gvsi$hfv@mujibur.inmind.com> <42d3e7$aks@mujibur.inmind.com> <42gftv$lrp@caip.rutgers.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!mujibur.inmind.com!usenet
From: mfinney@inmind.com
Newsgroups: comp.std.c
Subject: Re: "Canadian style" of indentation
Date: 5 Sep 1995 06:15:51 GMT
Organization: In Mind, Inc.
Message-ID: <42gpun$d1l@mujibur.inmind.com>
References: <41g464$6vv@ruby.ucc.nau.edu> <41gvsi$hfv@mujibur.inmind.com> <42d3e7$aks@mujibur.inmind.com> <42gftv$lrp@caip.rutgers.edu>
Reply-To: mfinney@inmind.com
NNTP-Posting-Host: finneyman.inmind.com
X-Newsreader: IBM NewsReader/2 v1.2