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 1riFAa-00Fx6N-32 for pgsql-general@arkaria.postgresql.org; Thu, 07 Mar 2024 14:56:28 +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 1riFAY-00654Y-IF for pgsql-general@arkaria.postgresql.org; Thu, 07 Mar 2024 14:56:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1riFAY-00654P-72 for pgsql-general@lists.postgresql.org; Thu, 07 Mar 2024 14:56:26 +0000 Received: from cloud.gatewaynet.com ([185.90.37.94]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1riFAU-003KRA-GM for pgsql-general@lists.postgresql.org; Thu, 07 Mar 2024 14:56:25 +0000 Message-ID: <596a6961-553e-3781-7aed-9dba969a18a5@cloud.gatewaynet.com> Date: Thu, 7 Mar 2024 16:56:18 +0200 MIME-Version: 1.0 Content-Language: en-US To: pgsql-general@lists.postgresql.org From: Achilleas Mantzios - cloud Subject: pl/pgsql outside the DB, (i.e. on the terminal) possible ? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello I notice both my kids struggling with either C or Python as first programming languages. I believe both are unsuitable for use as introductory languages to college juniors. Python IMHO is too advanced, too rich, weird indentation rules, no simple for loop etc. C, ok, punishing little kids with segmentation faults, calling by value VS by reference and 3ple pointers is pure sadism. So this brings me to memory good old PASCAL from the time I was junior, circa 1986. PL/SQL resembles PASCAL heavily. Everything seems well defined, strong typing, simplicity, I think it has everything a programming language should have in order to be taught as an introductory language. But it lacks IO and file handling. So, I ask, have there been any efforts to bring PL/PGSQL to the terminal? Thanks!