Re: Python (was Re: I did not inhale)

Liste des GroupesRevenir à c editors 
Sujet : Re: Python (was Re: I did not inhale)
De : david.brown (at) *nospam* hesbynett.no (David Brown)
Groupes : comp.unix.shell comp.unix.programmer comp.lang.misc
Date : 28. Aug 2024, 19:48:08
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vanrd8$3j0vv$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
User-Agent : Mozilla Thunderbird
On 28/08/2024 19:43, Muttley@dastardlyhq.com wrote:
On Tue, 27 Aug 2024 21:34:54 -0000 (UTC)
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
On Tue, 27 Aug 2024 11:26:18 +0100, Bart wrote:
>
(2) You want to temporarily comment out an 'if' line so that the
following block is unconditional. You can't do that with also
unindenting the block.
>
In Emacs, I have commands defined to adjust the indentation of the
selected region. Surely any other decent editor would offer the same.
 Writing editor editor macros in order to work around fundamentally bad
language design is not something a programmer should have to waste time on.
 
I don't know about Emacs, but in most editors the way you indent a block of code is to select the lines, then press "Tab".  Unindenting is "shift-Tab".  Changing tabs to spaces or spaces to tabs is done by selecting "Tabs to spaces" from the Edit menu, or something equally simple and obvious.  Many editor can be set to convert tabs to spaces (or vice versa) when saving files, perhaps specific to the file type (so you don't muck up your makefiles).
It takes a special kind of genius to be able to program, and yet still have trouble with this kind of thing.

Date Sujet#  Auteur
8 Jun 25 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal