Deutsch English Français Italiano |
<if-20240404121825@ram.dialup.fu-berlin.de> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail From: ram@zedat.fu-berlin.de (Stefan Ram) Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Command Languages Versus Programming Languages Date: 4 Apr 2024 11:20:48 GMT Organization: Stefan Ram Lines: 19 Expires: 1 Feb 2025 11:59:58 GMT Message-ID: <if-20240404121825@ram.dialup.fu-berlin.de> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de yoteiWOZAhLpZ4YMI2KohQM7acBmxFTdrqLwG5pHWhXrIZ Cancel-Lock: sha1:cI/lHcd4cNVDsJ5r9XFV/QWKAIE= sha256:lfOjHr8Iz6z6Xlq6bIpGxJS+d19QMuOfX0mMR7A95lA= X-Copyright: (C) Copyright 2024 Stefan Ram. All rights reserved. Distribution through any means other than regular usenet channels is forbidden. It is forbidden to publish this article in the Web, to change URIs of this article into links, and to transfer the body without this notice, but quotations of parts in other Usenet posts are allowed. X-No-Archive: Yes Archive: no X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some services to mirror the article in the web. But the article may be kept on a Usenet archive server with only NNTP access. X-No-Html: yes Content-Language: en-US Bytes: 3066 Richard Kettlewell <invalid@invalid.invalid> wrote or quoted: >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 way this syntax is set up is apparently credited to this guy named Guido, according to this PEP 308 thing. Now, in English, we usually throw a comma in there when an "if" clause comes first, 'cause it kinda throws off the normal flow, you know? So that shows the default position for "if" is actually after the main part. - Maybe Guido was making that same kind of comparison to English, and that's why he decided the post-"if" format works better. In my example here, there were a whole bunch of these operators all nested inside each other without any parentheses. And let me tell you, when you start getting into that kind of nested stuff with not parentheses in view, even the "?:" notation can start looking pretty darn mysterious to some folks.