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

Using defmsg can cause duplicate printing with alt spec #135

Closed
bhb opened this issue Nov 5, 2018 · 1 comment
Closed

Using defmsg can cause duplicate printing with alt spec #135

bhb opened this issue Nov 5, 2018 · 1 comment
Labels

Comments

@bhb
Copy link
Owner

bhb commented Nov 5, 2018

Given this spec for map

https://github.com/slipset/speculative/blob/c0c31d4e055346cb7caa831e28df8f96dda071be/src/speculative/core.cljc#L100-L106

And this message definition

(expound/defmsg ::speculative/ifn "should be a function (or a value that can be *treated* like a function e.g. a set or keyword)")

For the call (map 1 2), expound will print

Function arguments

  (1 2)
   ^

should be a function (or a value that can be *treated* like a function e.g. a set or keyword)

or

should be a function (or a value that can be *treated* like a function e.g. a set or keyword)
@bhb
Copy link
Owner Author

bhb commented Dec 9, 2019

Fixed as of 957302b

@bhb bhb closed this as completed Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant