emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on pcase


From: Oleh Krehel
Subject: Re: Question on pcase
Date: Fri, 23 Oct 2015 14:22:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Michael Heerdegen <address@hidden> writes:

> Eli Zaretskii <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]