1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-01 04:19:55 +00:00

Update CHANGELOG.md

Also change `with-resource` to `with`.
This commit is contained in:
Calvin Rose 2019-06-24 22:02:37 -04:00
parent 75f1bb6a7c
commit a7f3d3436f
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,9 @@
All notable changes to this project will be documented in this file.
## Unreleased
- Add `with` macro for resource handling.
- Add `propagate` function so we can "rethrow" signals after they are
intercepted. This makes signals even more flexible.
- Add `JANET_NO_DOCSTRINGS` and `JANET_NO_SOURCEMAPS` defines in janetconf.h
for shrinking binary size.
This seems to save about 50kB in most builds, so it's not usually worth it.

View File

@ -263,7 +263,7 @@
(++ i))
~(let (,;accum) ,;body))
(defmacro with-resource
(defmacro with
"Evaluate body with some resource, which will be automatically cleaned up
if there is an error in body. binding is bound to the expression ctor, and
dtor is a function or callable that is passed the binding. If no destructor