From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Instead of pcase Date: Tue, 21 Nov 2023 03:09:08 +0200 Message-ID: References: <87fs15kkk1.fsf@yahoo.com> <874jhi3qx3.fsf@web.de> <21eda04f-b974-0c56-ce6c-4fc0810e4e13@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30926"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: Michael Heerdegen , Jim Porter , rms@gnu.org, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 21 02:10:06 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 1r5FHB-0007oV-Ah for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Nov 2023 02:10:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r5FGS-00048y-U2; Mon, 20 Nov 2023 20:09:20 -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 1r5FGQ-00048h-W5 for emacs-devel@gnu.org; Mon, 20 Nov 2023 20:09:19 -0500 Original-Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r5FGP-0006Fg-2r; Mon, 20 Nov 2023 20:09:18 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 8DAA53200DA6; Mon, 20 Nov 2023 20:09:14 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 20 Nov 2023 20:09:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type: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=fm2; t= 1700528954; x=1700615354; bh=YCtNgC38ybKrRK36JjpmqmOYm3NwfeoJmIT bOSlFnEU=; b=RiBR4OYLPquo9QPMxYPSR4/uEyFMWrdWwhblo7GM90biNXwvAEg TuJ7NFXwtRxrrQ5BWjcz+k6qFXWP9n53/9nLDp8R1Lc4RkQYTRYC+ko/IiNYHCbh 2HygyHPSgOk1NHPllNkwLwAuUWKEALVrJjcp+MEayjInOZDlQF3GdliMsbeF7pYK EiRRNgghL09BB1gNQabR9UAWJ/y30aGzQTXoYDbBoPol4IXf99E8O8Rsdz7LqegP iW7XMPIB4NnCPXMXMQDt762MRF3D0ovpI/q3w7xC6LlP+QrZHZE8S4L1LpTzkzGm qQo1ZKHJIho4Rpx57/8XiPQ9xDEBwX7Z8cQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type: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= 1700528954; x=1700615354; bh=YCtNgC38ybKrRK36JjpmqmOYm3NwfeoJmIT bOSlFnEU=; b=SeqktVFLWRNqEARZ/kPA1kANaaOYqTppHcCL3hD7kZ+ZXUldwWJ fwKmKCRyEe+it5XtjDMaU6b5FpRmrK/bToc2yvhPHBp5TBLc4y80To0tQt8kjilB UelEIV2zySPzutptn2+CIw01AGq4zImWIrozkpuLGxc+oympK+qKgYdqBK7Kz8qL 2u0ZzTAKZIzpUFlBBeC1UFG7Gp7EDpWqoL01nuZ+VCS7FqTH8/l3GjfOKxkAf+uB ELyuSyJ6NctfO1S2fEe6lFcwHyjM9/JO0X79d0/VnrpwX8ltqvSnJ8vtGImPvdhH RKYt/pgBGlKP7S7h1hRfV5DQ/EqgyLRHJXg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudegkedgfedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepveehuedvjeevfefgfefghfdujeeuveeiieffleeiudejuddukeffudeuhfek jeeinecuffhomhgrihhnpehgihhthhhusgdrtghomhdpohhpvghnjhgukhdrohhrghdpsh htrhhouhhsthhruhhprdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Nov 2023 20:09:11 -0500 (EST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=64.147.123.19; envelope-from=dmitry@gutov.dev; helo=wout3-smtp.messagingengine.com X-Spam_score_int: -67 X-Spam_score: -6.8 X-Spam_bar: ------ X-Spam_report: (-6.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, NICE_REPLY_A=-4.009, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:313076 Archived-At: On 21/11/2023 01:43, Po Lu wrote: > Dmitry Gutov writes: > >> Polling professional C developers on whether they are comfortable with >> advanced syntax inspired by high-level languages like ML or Haskell is >> pretty much a self-fulfilling prophecy. >> >> Ask a company of OCaml developers (we have at least one representative >> of such among active contributors), or even a corpus of experienced >> JavaScript developers, the results will be different. > > How many O'Caml developers are there? It's not plausible that they > number greater than C developers (for that matter I don't think there's > any O'Caml software on my computer). OCaml -- maybe not that many. But the sum total of developers writing in high-level languages (JavaScript included) is quite high. Ruby and Python have pattern matching in that style. Rust and Swift do too. JS might be getting one in a few years: https://github.com/tc39/proposal-pattern-matching Java introduced limited/experimental support this year: https://openjdk.org/jeps/432 Even the C++ standard might get it one day: https://www.stroustrup.com/pattern-matching-November-2014.pdf (libraries already available)