Deutsch English Français Italiano |
<uulnf2$hg6h$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Muttley@dastardlyhq.com Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Command Languages Versus Programming Languages Date: Thu, 4 Apr 2024 08:13:22 -0000 (UTC) Organization: A noiseless patient Spider Lines: 33 Message-ID: <uulnf2$hg6h$1@dont-email.me> References: <uu54la$3su5b$6@dont-email.me> <uu636l$7haj$1@dont-email.me> <20240329084454.0000090f@gmail.com> <uu6om5$cmv8$1@dont-email.me> <20240329101248.556@kylheku.com> <uu6t9h$dq4d$1@dont-email.me> <20240329104716.777@kylheku.com> <uu8p02$uebm$1@dont-email.me> <20240330112105.553@kylheku.com> <uudrfg$2cskm$1@dont-email.me> <87r0fp8lab.fsf@tudado.org> <uuehdj$2hshe$1@dont-email.me> <87wmpg7gpg.fsf@tudado.org> <LISP-20240402085115@ram.dialup.fu-berlin.de> <LISP-20240402091729@ram.dialup.fu-berlin.de> <wrap-20240402092558@ram.dialup.fu-berlin.de> <uui7hf$3gona$1@dont-email.me> <uuj1o5$3pvnq$1@dont-email.me> <87plv6jv1i.fsf@nosuchdomain.example.com> <wwv5xwyifq8.fsf@LkoBDZeT.terraraq.uk> Injection-Date: Thu, 04 Apr 2024 08:13:22 +0200 (CEST) Injection-Info: dont-email.me; posting-host="4f3283ee60a3ebcbca7b81ecdc077b86"; logging-data="573649"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX197bca+frbKV1yPozORnZFA" Cancel-Lock: sha1:9fexblOR+oLFf8+vD3iwV1M0e/8= Bytes: 3216 On Wed, 03 Apr 2024 17:16:31 +0100 Richard Kettlewell <invalid@invalid.invalid> wrote: >Keith Thompson <Keith.S.Thompson+u@gmail.com> writes: >> David Brown <david.brown@hesbynett.no> writes: >>> On 03/04/2024 02:23, Lawrence D'Oliveiro wrote: >>>> It’s bloody horrible Python even when wrapped correctly. I think >>>> Python’s version of the conditional expression is a complete >>>> abortion. >>> >>> That's probably the reason almost no one uses it. That post is the >>> first time I have ever seen conditional expressions outside of a brief >>> mention in a tutorial on Python conditionals showing how to write >>> normal conditionals in the language. I think Python stole this one >>> from Perl. >> >> No, Perl's conditional expressions use the same syntax as C's. >> >> As for whether Python's conditional expression syntax, it's not clear >> that (cond ? expr1 : expr2) is better or worse than (expr1 if cond else >> expr2) (unless you happen to be familiar with one of them). > >I’ve been familiar with both for years and I think the Python version is >awful; in particular the ordering is a bizarre choice. The PEP where >they worked out the design acknowledges this but then they went ahead >and did it anyway... I believe its known as being different for the sake of being different which is closely related to change for changes sake. Its the reason screwed up the WIndows GUI - a new generation of devs had to prove their could be different to the previous one regardless of how badly their new version sucked. Or in more general cases - we've all seen new managers come in and change processes just to prove they were doing something.