Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1riI6f-00GEqT-Jy for pgsql-general@arkaria.postgresql.org; Thu, 07 Mar 2024 18:04:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1riI6d-007gaT-SH for pgsql-general@arkaria.postgresql.org; Thu, 07 Mar 2024 18:04:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1riI6d-007gaL-GX for pgsql-general@lists.postgresql.org; Thu, 07 Mar 2024 18:04:36 +0000 Received: from cloud.gatewaynet.com ([185.90.37.94]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1riI6X-003ImU-Au for pgsql-general@lists.postgresql.org; Thu, 07 Mar 2024 18:04:35 +0000 Message-ID: Date: Thu, 7 Mar 2024 20:04:21 +0200 MIME-Version: 1.0 Subject: Re: pl/pgsql outside the DB, (i.e. on the terminal) possible ? To: pgsql-general@lists.postgresql.org References: <596a6961-553e-3781-7aed-9dba969a18a5@cloud.gatewaynet.com> Content-Language: en-US From: Achilleas Mantzios In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Στις 7/3/24 17:13, ο/η Karsten Hilbert έγραψε: > Am Thu, Mar 07, 2024 at 04:56:18PM +0200 schrieb Achilleas Mantzios - cloud: > >> Python IMHO is too advanced, too rich, > Python _is_ powerful but it needn't be difficult. > >> weird indentation rules > A matter of taste IMO. > >> no simple for loop > Really ? > > Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> for idx in [0,1,2,3]: print(idx) Dude this is like saying that for n=N the statement itself takes O(N) to write, this is not only "not-simple", this is a darn anti-pattern , that should be avoided at any cost in 1st year of college. > ... > 0 > 1 > 2 > 3 > >>> > > Karsten > -- > GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B > > -- Achilleas Mantzios IT DEV - HEAD IT DEPT Dynacom Tankers Mgmt (as agents only)