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

let-like syntactic abstraction #2

Open
ghost opened this issue Mar 2, 2016 · 0 comments
Open

let-like syntactic abstraction #2

ghost opened this issue Mar 2, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 2, 2016

A let-like macro for declaring fetches withouth worrying about dependencies:

(flet [posts (latest-posts 10)
       post-scores (u/traverse score posts)
       authors (u/traverse user posts)]
 (map (fn [post score author]
        (merge post {:author author :score score})) 
      posts 
      post-scores 
      authors))        

which will be translated to calls to the combinators under the hood, resolving the data dependencies based on the code.

@ghost ghost changed the title let-lik syntactic abstractions let-lik syntactic abstraction Mar 2, 2016
@ghost ghost changed the title let-lik syntactic abstraction let-like syntactic abstraction Mar 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants