Skip to content

Commit c47611e

Browse files
committed
rename: async-defun => defun-async, async-lambda => lambda-async
1 parent ebc40aa commit c47611e

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ This system can be installed from [UltraLisp](https://ultralisp.org/) like this:
1515
## Usage
1616

1717
```common-lisp
18-
(async-defun foo ()
18+
(defun-async foo ()
1919
...)
2020
2121
(let ((bar (await (foo))))
2222
...)
2323
24-
(async-lambda () (await (foo)))
24+
(lambda-async () (await (foo)))
2525
```
2626

2727
## Credits

package.lisp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(defpackage paren-async
22
(:use #:cl)
33
(:export #:await
4-
#:async-defun
5-
#:async-lambda))
4+
#:defun-async
5+
#:lambda-async))

paren-async.lisp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@
99
(ps::define-trivial-special-ops
1010
await ps-js::await)
1111

12-
(ps::define-statement-operator async-defun (name lambda-list &rest body)
12+
(ps::define-statement-operator defun-async (name lambda-list &rest body)
1313
(multiple-value-bind (effective-args body-block docstring)
1414
(ps::compile-named-function-body name lambda-list body)
15-
(list 'ps-js::async-defun name effective-args docstring body-block)))
15+
(list 'ps-js::defun-async name effective-args docstring body-block)))
1616

17-
(ps::defprinter ps-js::async-defun (name args docstring body-block)
17+
(ps::defprinter ps-js::defun-async (name args docstring body-block)
1818
(when docstring (ps::print-comment docstring))
1919
(ps::psw "async ")
2020
(ps::print-fun-def name args body-block))
2121

22-
(ps::define-expression-operator async-lambda (lambda-list &rest body)
22+
(ps::define-expression-operator lambda-async (lambda-list &rest body)
2323
(multiple-value-bind (effective-args effective-body)
2424
(ps::parse-extended-function lambda-list body)
25-
`(ps-js::async-lambda ,effective-args
25+
`(ps-js::lambda-async ,effective-args
2626
,(let ((ps::*function-block-names* ()))
2727
(ps::compile-function-body effective-args effective-body)))))
2828

29-
(ps::defprinter ps-js::async-lambda (args body-block)
29+
(ps::defprinter ps-js::lambda-async (args body-block)
3030
(ps::psw "async ")
3131
(ps::print-fun-def nil args body-block))

0 commit comments

Comments
 (0)