comp.lang.ada
 help / color / mirror / Atom feed
From: Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject: Re: [BBC] Programmers who use spaces 'paid more'
Date: Mon, 19 Jun 2017 22:18:14 -0400
Date: 2017-06-19T22:18:14-04:00	[thread overview]
Message-ID: <491hkc54jckf5m2bikgpfvv4bvscvams7n@4ax.com> (raw)
In-Reply-To: 9ae52cb4-3a8a-4b3e-85f8-d571da6c15b0@googlegroups.com

On Mon, 19 Jun 2017 18:49:12 -0700 (PDT), frankmanning@earthlink.net
declaimed the following:

>I remember the whole tabs-vs-spaces thing was a sore subject when I got my first programming job in 1981. To me it's unbelievable that it's still unresolved 36 years later.

	It's a significant factor for Python. Tabs are considered equivalent to
8-space indent, regardless of how the editor is configured to display them.

	Someone using a 4-space display editor /sees/

<sp><sp><sp><sp>code
<tab>code

as being the same level of indent, the Python parser sees 

<4-sp>code
<8-sp>code

hence different indentation levels -- and since Python uses indent level to
determine the end of code blocks, it will object.
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/


  reply	other threads:[~2017-06-20  2:18 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-18 13:45 [BBC] Programmers who use spaces 'paid more' Mr. Man-wai Chang
2017-06-18 20:13 ` Per Sandberg
2017-06-18 23:03   ` J. Clarke
2017-06-19  0:22     ` Lew Pitcher
2017-06-19  5:50     ` Pascal J. Bourguignon
2017-06-19 14:28       ` Mr. Man-wai Chang
2017-06-20  3:00     ` Snit
2017-06-21 12:57       ` lyttlec
2017-06-19 10:46   ` Mr. Man-wai Chang
2017-06-19  1:19 ` Chris M. Thomasson
2017-06-19  2:23   ` J. Clarke
2017-06-19 19:42     ` Chris M. Thomasson
2017-06-20  1:49       ` frankmanning
2017-06-20  2:18         ` Dennis Lee Bieber [this message]
2017-06-21 13:02           ` lyttlec
2017-06-20  2:19       ` J. Clarke
2017-06-20 18:44         ` Chris M. Thomasson
2017-06-21 13:07         ` lyttlec
2017-06-19 10:47   ` Mr. Man-wai Chang
2017-06-19 11:24     ` AnthonyL
2017-06-19 12:26       ` Mr. Man-wai Chang
2017-06-19 13:53 ` JJ
2017-06-19 14:27   ` Mr. Man-wai Chang
2017-06-20 21:51   ` Anton Shepelev
2017-06-21 10:27 ` jm.tarrasa
2017-06-21 12:27 ` Simon Wright
2017-06-22  0:09   ` Robert Eachus
2017-06-21 16:48 ` Pascal J. Bourguignon
2017-06-21 16:52   ` Mr. Man-wai Chang
2017-07-05 18:36   ` Adam Jensen
2017-06-23  2:24 ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox