From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.devel Subject: Re: Adding support for xref jumping to headers/interfaces Date: Tue, 28 Feb 2023 19:05:34 +0300 Message-ID: References: <83bklin83z.fsf@gnu.org> <865ybmu2ha.fsf@stephe-leake.org> <39e25c9a-b4cc-a0ce-3f2a-1d2a1fc243d0@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17815"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Dmitry Gutov , Stephen Leake , Eli Zaretskii , Spencer Baugh , Emacs developers , azeng@janestreet.com To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 28 17:06:56 2023 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 1pX2VD-0004Q8-Bt for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Feb 2023 17:06:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pX2U9-0002DF-I1; Tue, 28 Feb 2023 11:05:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pX2U7-0002CO-Pw for emacs-devel@gnu.org; Tue, 28 Feb 2023 11:05:47 -0500 Original-Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pX2U5-0008Ro-W7; Tue, 28 Feb 2023 11:05:47 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id A6E4F3200564; Tue, 28 Feb 2023 11:05:40 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 28 Feb 2023 11:05:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1677600340; x= 1677686740; bh=V2YZv2/gflgYZw0Iwwe4A/G8LvYX0lX5RXS161rqGGA=; b=f +M9BvlG+EaqydxHdGLIeFRYLJPe1ET+b8CaWFlSO5urfS1vazzkZ7eJi84B4kYN3 AZPq1n+zTEGU9lCk0xmzN7oqriFmpIk6by87opUHkbplLro5dQfRg8VKR/qdYEao 7zrLApET588CtmnHlAAKerPozguJ48oYhiy60Td/LVOd8cCPxStdBOdSJUKbmyyG fsE06tLiRPFD+BCqlg3QEes8kzAEl4SFIGOAyq+de+iQOdoTvCZ7eWVxK19gKdhz 0CrIa/EESEydw3uS3AnH43UxV6mpIj7gN7i7Sfrb/IIznuy7kF3jfEIM2lVxUhKu DH8QsDWK6eFHTBTYgBUbA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1677600340; x= 1677686740; bh=V2YZv2/gflgYZw0Iwwe4A/G8LvYX0lX5RXS161rqGGA=; b=S 6rPQqfFwFIgAE9LuYbtCRv8tS8Im9Ndxxdq6p9f8BAhtVz2Aef10f0V6Es74L3iE G4Cl3wu2HXWUb28P6V48EdpcPsfjEWgWaCNS9yOz3wkEPCAta52pjliMUV4a/FZp aKp9aUTT9rqnfn/Ov1jdXNlrzLKprnYeYgwMPbXzqPJskH+IcjJYlBhlwTB7LxMK Z45WAhhIeQsmWBhKvvSpHAIZs+LOv3stFRyYY3H36IjITzyioKO5ST42iNXOYIgh NqQYWelzbC34Hs2NrlJTpZeNTHQRApOjU24+itCDSRz5kWYXFnVISi75sNbWRUkU WDnUVeprjd37HkgfRhNBA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudelfedgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffgffkfggtgfgsehtqhertddtreejnecuhfhrohhmpefhihhl ihhpphcuifhunhgsihhnuceofhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmheqnecugg ftrfgrthhtvghrnhepfeelfeffteeiteeuvdettdfgheegveethfeuveejheejleeuiefg vedtiefhueegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepfhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: id48c41f1:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Feb 2023 11:05:38 -0500 (EST) In-Reply-To: (Yuan Fu's message of "Mon, 27 Feb 2023 16:18:14 -0800") Mail-Followup-To: Yuan Fu , Dmitry Gutov , Stephen Leake , Eli Zaretskii , Spencer Baugh , Emacs developers , azeng@janestreet.com Received-SPF: pass client-ip=64.147.123.25; envelope-from=fgunbin@fastmail.fm; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303859 Archived-At: On 27/02/2023 16:18 -0800, Yuan Fu wrote: >> On Feb 27, 2023, at 3:34 PM, Dmitry Gutov wrote: >>=20 >> On 28/02/2023 01:12, Stephen Leake wrote: >>> Dmitry Gutov writes: >>>> About the name, though -- does "jump to interfaces" make sense for >>>> many languages? To my ear, the naming seems specific to OCaml. >>>>=20 >>>> "jump to declaration(s)", perhaps? >>> In Ada, the term is "specification(s)". I don't know of other languages >>> that use it, but the English meaning is clear. >>=20 >> That sounds clear enough, but if it's only an Ada term, it might not be = the best choice for other languages. E.g. from completion POV. >>=20 >> This seems like a good occasion for a popular vote. So everyone is welco= me to state their preferred naming. >>=20 > > I think =E2=80=9Cinterface=E2=80=9D is widely used and conveys the meanin= g well. Java, Clojure and Javascript call them interfaces, too. In Java it makes more sense to talk about abstract methods, if we're on the method level. Interfaces are type-level construct, and they include not only abstract methods, but also default and static methods (with implementation), constants etc. TBH, I don't see how this could be named well to fit all languages. I like "declaration" word more, if we need a name. However, it's confusable with "definition".