From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: haj@posteo.de (Harald =?utf-8?Q?J=C3=B6rg?=) Newsgroups: gmane.emacs.devel Subject: Re: [OFFTOPIC] Re: Handling extensions of programming languages (Perl) Date: Mon, 22 Mar 2021 23:05:22 +0100 Message-ID: <87lfaergil.fsf@hajtower> References: <87o8ff560t.fsf@hajtower> <87im5lhi6i.fsf@rfc20.org> <87r1k94cnx.fsf@hajtower> <20a4ef1c-beaf-1d63-b984-12be9a856c86@gmail.com> <87h7l43fa1.fsf@hajtower> <87blbc33tm.fsf@hajtower> <878s6fs2kq.fsf_-_@hajtower> <87y2efqek7.fsf@hajtower> <87r1k7q92b.fsf@hajtower> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26455"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 22 23:06:22 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOSgo-0006mb-1Z for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Mar 2021 23:06:22 +0100 Original-Received: from localhost ([::1]:43892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOSgm-0001uM-OL for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Mar 2021 18:06:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOSfw-0001NY-2w for emacs-devel@gnu.org; Mon, 22 Mar 2021 18:05:28 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:42097) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOSft-0001iB-LP for emacs-devel@gnu.org; Mon, 22 Mar 2021 18:05:27 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 39E56240100 for ; Mon, 22 Mar 2021 23:05:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1616450723; bh=0XweAuCR5B5/i6dkVB0H6F2DxR89rkjGEQziTRUxjto=; h=From:To:Cc:Subject:Date:From; b=bzh+QZF5il60JMcLwXSLdpz7acqHVOjLbf4aQlGIVgzaEFcFbgIurdOE2lYYTkhcU AjVmx63AdjCt3eSGDwLP+UD7iOGJprM8seaVYX3jBlUvo6hqo1Y9ILNPRumrIMb3ND oN7X/NWWWQ2fgqBNOhN3vr0WWGnd6BUEnWpy+r8VRxqTzNHjKmqcgVBkfSQoGPhs+i qJnVKRankG1v9hGcnGS1zfUYHfRjscsSkQOq0NNUZawlg3CNLBl+fZKDH06IHPJXa9 N4SeQzZWC5vi8FBB7JxixDVM0oFHs7zrCSKdcO3EZTsVdJBAmggahrryQljvfrbplp o/9nxAWysPuBw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4F47pp3cvwz9rxR; Mon, 22 Mar 2021 23:05:22 +0100 (CET) In-Reply-To: (Stefan Monnier's message of "Mon, 22 Mar 2021 15:58:55 -0400") Received-SPF: pass client-ip=185.67.36.66; envelope-from=haj@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:266839 Archived-At: Stefan Monnier writes: >>>> That was my first thought as well. But then, the declarators appear in >>>> places where other languages have their types. >>> >>> [ I think you use a very restricted definition of "other languages" here. >>> It's definitely not the case for most of the statically typed languages >>> I've used, except for C. >>> I'm thinking of OCaml, SML, Haskell, Agda, Coq, Modula-2, Pascal, Ada, ... ] >> >> Guilty, your honor. In the last years I've dealt with Emacs Lisp (only >> very recently), Perl, C, Java, JavaScript ... and before that with a >> dialect of PL/1, assembly languages (68000, x86, /390) ... and before >> that with FORTRAN, where everyone's type system seemed to be IMPLICIT >> INTEGER I-N. So indeed, almost no intersection with your list. > > Of those the only ones that are statically typed seem to be C, Java, > Fortran and PL/1; and AFAICT only 50% (C and Java) use a syntax where > the type is placed at a location comparable to where `my` is placed in > Perl, IMO. Fortran, too, unless you do the IMPLICIT trick. But anyway: Looking at the Emacs modes for Java and C, all keywords like "private" and "static" (which, similar to "my" in Perl, define scope rather than type) are in keyword-face. This would indicate that keyword-face is to be preferred for the declarators, and type-face for the types. -- Cheers, haj