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

Reevaluate the usefulness of furculas #28

Open
rplevy opened this issue Feb 6, 2020 · 0 comments
Open

Reevaluate the usefulness of furculas #28

rplevy opened this issue Feb 6, 2020 · 0 comments

Comments

@rplevy
Copy link
Owner

rplevy commented Feb 6, 2020

The furcula macros seem to be unnecessary because anything that could be done with them could be done with more idiomatic expressions.

the macros in question include:

-< , -<:p The Furcula, Parallel Furcula

-<< , -<<:p The Trystero Furcula, Parallel Trystero Furcula

-<>< , -<><:p The Diamond Fishing Rod, Parallel Diamond Fishing Rod
  1. Confirm the equivalence of the behavior of these macros with more idiomatic expressions.

    For example, a call to

          (-< (+ 1 2)
                  (list 2)
                  (list 3)
                  (list 4)))
    

    Should produce the same value as

    (map (fn [x] (list (+ 1 2) (first x))) [(list 1) (list 2) (list 3)])
    
    • Write test that demonstrate more idiomatic expressions can accomplish results.

    • Compare the output with the result of the expression that is supposed to produce the same value

  2. If the tests pass, then mark the macros as deprecated

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