Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Inconsistency of $ #32

@dryewo

Description

@dryewo

First of all, thanks for the wonderful library! I'm trying to study FSM applications and doing some exercises. Suddenly I bumped into an issue:

This works:

(view  (a/interpose-$ 42 [1]))

While this doesn't:

(view [1 (a/$ 42)])

If I replace 42 with :foo, it works both ways and produces identical FSMs.
My use case is that I want to dispatch reducers with a function, not with a map:

(defn reducers [v]
  (fn [state _] (+ state v)))
...
(a/compile [ ... ]
             {:reducers reducers}))

Therefore I need to pass more than just a keyword, possibly a nested data structure.
Is this a bug or a feature? It would be great to have it working consistently, and also just $ is much shorter than interpose-$.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions