Skip to content

Conversation

@v0idpwn
Copy link
Member

@v0idpwn v0idpwn commented Dec 17, 2021

Related to #3800 and #2958.
Atom list sigils were being escaped as literals instead of going into select_expr.take.

cond do
take?(other) ->
{{:{}, [], [:&, [], [0]]}, {[], %{0 => {:any, other}}}}
{{:{}, [], [:&, [], [0]]}, {[], %{0 => {:any, Macro.expand(other, env)}}}}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this macro expansion may be not necessary, but I like the idea of expanding the sigil here instead of passing it on. wdyt?

@v0idpwn v0idpwn merged commit b0d839b into master Dec 17, 2021
@v0idpwn v0idpwn deleted the fix/handle-sigils-in-select branch December 17, 2021 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants