Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to record return types and receive typed objects #8

Open
vermiculus opened this issue Nov 17, 2017 · 0 comments
Open

Comments

@vermiculus
Copy link
Owner

vermiculus commented Nov 17, 2017

A type would probably be implemented lightly as [typename object]. As for defining return types, a syntax like the following could work (I'm open to suggestions):

(defapiget-foo "/foo/bar/.id" [is bar] ...)   ; a single BAR
(defapiget-foo "/foo/bars"    [is (bar)] ...) ; a collection of BARs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant