From: Zhu Zihao <all_but_last@163.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Zhu Zihao <all_but_last@163.com>, emacs-devel@gnu.org
Subject: Re: New lisp library -- cell.el
Date: Sat, 29 Feb 2020 14:48:26 +0800 [thread overview]
Message-ID: <874kv9evnp.wl-all_but_last@163.com> (raw)
In-Reply-To: <jwvh7za6pj7.fsf-monnier+emacs@gnu.org>
I push some commits to take the refactor. Check newest at
https://github.com/cireu/emacs-cell/blob/master/cell.el
Changelog:
1. Remove cell-option. Add cell-some, which can be united with nil to present a
nullable value.
2. Unify the name of constructor of cells
- cell-some(new)
- cell-box-make -> cell-box,
- cell-weak-make -> cell-weak
Internal constructors names:
- cell-some--make(new)
- cell-box--make(unchanged)
- cell-weak--internal-make -> cell-weak--make
3. Remove destructuring macro cell-option-if-let and cell-option-when-let, add
pcase pattern cell-some. It's better to extend pcase than a new macro.
4. Remove cell-option related utils.
next prev parent reply other threads:[~2020-02-29 6:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-28 6:21 New lisp library -- cell.el Zhu Zihao
2020-02-28 8:51 ` Zhu Zihao
2020-02-28 15:43 ` New " Stefan Monnier
2020-02-28 16:51 ` Zhu Zihao
2020-02-29 3:30 ` Stefan Monnier
2020-02-29 6:48 ` Zhu Zihao [this message]
2020-02-29 14:09 ` Stefan Monnier
2020-03-01 7:43 ` Zhu Zihao
2020-03-05 15:52 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874kv9evnp.wl-all_but_last@163.com \
--to=all_but_last@163.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.