emacs-devel
[Top][All Lists]
Advanced

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

Re: New macro `seq-let' in seq.el


From: Stefan Monnier
Subject: Re: New macro `seq-let' in seq.el
Date: Tue, 05 May 2015 15:56:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> PS: `pcase--u1' is pretty long (almost 200 loc), is there any reason not
> to refactor it?  As it is now I will have a very hard time understanding
> what is does exactly.

You shouldn't need to know how pcase--u1 works.

You just need to write a pcase-macro which turns (seq ...) patterns into
other (more primitive) pcase patterns.  E.g. it could turn (seq a b)
into a pattern like (and (pred seq-p) (app (elt 0) a) (app (elt 1) b)).


        Stefan



reply via email to

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