Deutsch English Français Italiano |
<vc3fpk$1c68s$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!npeer.as286.net!npeer-ng0.as286.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Python (was Re: I did not inhale) Date: Sat, 14 Sep 2024 09:59:46 +0200 Organization: A noiseless patient Spider Lines: 58 Message-ID: <vc3fpk$1c68s$1@dont-email.me> References: <uu54la$3su5b$6@dont-email.me> <v9m4gd$14scu$1@dont-email.me> <20240815182717.189@kylheku.com> <v9npls$1fjus$1@dont-email.me> <v9t204$2dofg$1@dont-email.me> <va28pi$3dldm$1@dont-email.me> <va2ro9$3gd7v$1@dont-email.me> <va2vt0$3h3gj$1@dont-email.me> <va44rh$3p1l6$1@dont-email.me> <va45eq$3pkt9$1@dont-email.me> <va4aut$3q4g0$1@dont-email.me> <va4fbr$3qvij$1@dont-email.me> <va5108$3tmmd$1@dont-email.me> <va51ok$3tqr9$1@dont-email.me> <va5ec2$3vluh$1@dont-email.me> <va6q4g$c1a7$1@dont-email.me> <va6rpa$c6bg$1@dont-email.me> <va6se9$cb8e$1@dont-email.me> <20240826083330.00004760@gmail.com> <vaises$2k7o6$2@dont-email.me> <20240826155113.000005ba@gmail.com> <wwvo75eicla.fsf@LkoBDZeT.terraraq.uk> <vak9k9$2ujrs$1@dont-email.me> <valgpu$34s18$1@dont-email.me> <vannkg$3ig72$1@dont-email.me> <vanrd8$3j0vv$1@dont-email.me> <vap7vq$3sr7b$1@dont-email.me> <vappl3$3v4l8$4@dont-email.me> <vaq8hk$1qbm$1@dont-email.me> <vaqij8$33ga$3@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 14 Sep 2024 09:59:48 +0200 (CEST) Injection-Info: dont-email.me; posting-host="dc3b97d43456dc5dd646785e778fa81e"; logging-data="1448220"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1852sS509AsweXZPyB34uh3" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:2/AktVy+dwfrfrZkrJwwIqEEG3Q= X-Enigmail-Draft-Status: N1110 In-Reply-To: <vaqij8$33ga$3@dont-email.me> Bytes: 4740 On 29.08.2024 21:36, David Brown wrote: > On 29/08/2024 18:44, Janis Papanagnou wrote: >> On 29.08.2024 14:30, David Brown wrote: >>> On 29/08/2024 09:28, Muttley@dastardlyhq.com wrote: >>>> [...] >>> >>> Then don't use vim - use an editor that suits your needs. >> [...] > >> But what makes you think that his needs are not covered by Vim? > > You seem to have missed the point - sorry if I was not clear. > > He complained that he didn't want to learn complicated macros in Vim > just to be able to indent or un-indent lines of code. The solution is > obvious - he should use an editor other than Vim. This is not what I'd call a solution. I'd call it elusion; and in both senses - if he didn't use his editor for that space-indenting because he doesn't know how to do it he could look that up, but it is not any issue to do that, only more laborious than indenting brace structures, and the suggestion to switch to another tool is also elusive because it doesn't address the issue (he would still have to learn how to do it in any other tool). - But that was not the point. > > He could, of course, learn how to use Vim. It's a perfectly good editor > with a lot of features. [...] The point was about language design and (well known) problems with a design that uses white-space for semantical purposes. That the brace structures can usually be edited in better, simpler ways (beyond also providing safety etc. using a more sophisticated designed language). > > There are more than enough decent editors to choose from, that cover the > basic needs of programmers. Some people use one editor for everything, > others use a range for different purposes - whatever suits you. But it > is pretty absurd to complain that it is difficult to indent code just > because you (i.e., Muttley) think it is hard to do in one particular > editor. As said; it was about "the language was designed properly"[Muttley]. And saying that switching the editor would solve something here is just missing the point. You can (also in Vim) write macros, as you correctly imply, or do all the things that you can do with "other tools" (but only equally laborious as in these other tools) as I already said. You can also (for that specific IMO mis-designed language) enable "folding" (by spaces) in Vim to not have to write macros (and not littering the standard editor environment) that makes it comparably simply to do the indentation more comfortably with less keystrokes. But nothing beats the editing of parenthesized structures. (And doesn't change any language mis-design.) YMMV. Janis