Skip to content

let-like syntactic abstraction #2

@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions