From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.devel Subject: Re: Question on pcase Date: Fri, 23 Oct 2015 14:22:49 +0200 Message-ID: <87611xepuu.fsf@gmail.com> References: <871tcngdv2.fsf@gmail.com> <87k2qe1u09.fsf@web.de> <83r3kmrtat.fsf@gnu.org> <87r3kl22zk.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445602969 17053 80.91.229.3 (23 Oct 2015 12:22:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 12:22:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 23 14:22:44 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZpbMo-0001Gy-3C for ged-emacs-devel@m.gmane.org; Fri, 23 Oct 2015 14:22:42 +0200 Original-Received: from localhost ([::1]:38087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpbMn-0003qo-IM for ged-emacs-devel@m.gmane.org; Fri, 23 Oct 2015 08:22:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpbMZ-0003qg-09 for emacs-devel@gnu.org; Fri, 23 Oct 2015 08:22:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpbMV-0001N2-2X for emacs-devel@gnu.org; Fri, 23 Oct 2015 08:22:27 -0400 Original-Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:34218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpbMU-0001Mw-Sp for emacs-devel@gnu.org; Fri, 23 Oct 2015 08:22:22 -0400 Original-Received: by wikq8 with SMTP id q8so74393906wik.1 for ; Fri, 23 Oct 2015 05:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=ltRtRgZ183GKHeysiv0HSfHdWqbmaxGWcT46xoPxKtA=; b=cvoyi9MrR/zWbm3qkFK0SIJjJqkRdFVEO1lZmPaqY2hsC9LPBkXvLPkr8Y2VQseS5M 8smL0UkNyDyySpLoSH0sSO4HnUT7CJJxnw6oGXVW4hsxVzS2EXHnLImyNAByeZR76qM7 W2siz+q98twl7DcgEdqJ8WnSGgneG1/dXePXsrgLmmC42SqI67XqJS0I33J5QQAKkH7q lve/7t22wb8eDuEdz3XBLNQb8HVb6OHfF9jf69Pih8OVODzA4sYUo7Ft3HPWbflDUcJq DPwycmRRQ7x3ozL/k+gRwQEFZgxtc5d6Yco8vbsXa+2p/glWXB3Hx9aVLytGU/5FUEAE IEPA== X-Received: by 10.180.36.51 with SMTP id n19mr4284570wij.31.1445602942282; Fri, 23 Oct 2015 05:22:22 -0700 (PDT) Original-Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by smtp.gmail.com with ESMTPSA id g9sm10321542wix.1.2015.10.23.05.22.21 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 23 Oct 2015 05:22:21 -0700 (PDT) In-Reply-To: <87r3kl22zk.fsf@web.de> (Michael Heerdegen's message of "Fri, 23 Oct 2015 14:17:35 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:192479 Archived-At: Michael Heerdegen writes: > Eli Zaretskii writes: > >> Maybe we should have some higher-level facility to expand a pcase into >> a human-readable form. Would something like this be possible and >> useful? > > Possible - maybe. Useful: IMHO no. `pcase' is simple and easy to > learn. It just looks a bit frightening and strange at first. I would > rather improve documentation or write an easy intro than invite people > to avoid learning an excellent tool. I think it would be very useful. Take, for instance, `cond' - it's a perfect abstraction and allows you to step into any branch that you like. Whether it's easy to understand or not, I'd like `pcase' to offer the same option. I'm sure that even if I knew all the intricacies of `pcase', I'd still want an option to "step-in", just like I enjoy this option for `cond` right now. It's a matter of good tooling, not good documentation.