Remember to require it before using it.

There is an issue to improve the error message in this cases.

On Fri, Jun 7, 2024 at 00:35 Brian Cardarella <bcardare...@gmail.com> wrote:

> I'm trying to produce something similar to `Kernel.match?/2` in that I can
> pass a pattern to it, but if I reproduce the same macro I get the "cannot
> be an expression" error.
>
> I have a livebook here with output showing:
>
> https://gist.github.com/bcardarella/4d5655e0e7c90036754c25b94b2af4df
>
> I searched the source but cannot seem to find any special tokenization
> case for that match?/2 as to why it is treated differently.
>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elixir-lang-core+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/208e5c50-061c-4d4d-a426-d86756903e27n%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/208e5c50-061c-4d4d-a426-d86756903e27n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4JJKY8UTncWMYkEG2LcsJfNe0HAhG%3DBfkdq7i8PBMJVTQ%40mail.gmail.com.

Reply via email to