emacs-devel
[Top][All Lists]
Advanced

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

Re: New lisp library -- cell.el


From: Zhu Zihao
Subject: Re: New lisp library -- cell.el
Date: Sat, 29 Feb 2020 14:48:26 +0800
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/27.0 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

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.




reply via email to

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