We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
p/for
The for macro asserts that the binding form is a symbol:
for
(assert (symbol? sym) (str "Requires symbol for binding name: " sym))
This restriction seems unnecessary, and prevents users from using destructuring:
(p/parse (p/for [[x & xs] (p/*many char/number?)] (p/result {:first x, :rest xs})) "12345")
Maybe we can remove the assert?
assert
The text was updated successfully, but these errors were encountered:
(fix): allow destructuring in p/for #8
c10fbb3
Removed the assert :-)
Sorry, something went wrong.
No branches or pull requests
The
for
macro asserts that the binding form is a symbol:This restriction seems unnecessary, and prevents users from using destructuring:
Maybe we can remove the
assert
?The text was updated successfully, but these errors were encountered: