Hi Jean,

Unless there is something broken in our interface with records, I believe
this is perfectly fine as a library. It is not a very common use case and
users can reach out to your library if they need it. :)

Thanks for pinging!



*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D

On Tue, Aug 21, 2018 at 5:45 PM, Jean Parpaillon <[email protected]>
wrote:

> The quaff project (https://github.com/qhool/quaff) allows importing
> erlang headers (.hrl files) into an elixir module.
>
> macros are imported as module attributes and can be (optionally) exported
> as 0-arity functions.
>
> I've updated the code (https://github.com/jeanparpaillon/quaff) to behave
> more like `import` statement and add missing features:
> - added `only` and `except` options to whitelist / blacklist imported
> macros
> - quaff can now parse deferred definitions. For instance
>
> ```
> -define(FOO, ?BAR).
> -define(BAR, 42).
> ```
> which is valid in erlang but was raising error in upstream quaff.
>
> Would you be interested in including this library in mainstream elixir ?
> It would complete the Record module for better erlang / elixir
> compatibility.
>
> Best regards,
> Jean Parpaillon
>
> --
> 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 [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/elixir-lang-core/67ba2900-3eef-407f-a46d-
> 6a010c36c610%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/67ba2900-3eef-407f-a46d-6a010c36c610%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4LnRpfcodMB49ToZ88EwM1wFRX65cbboXF1Dy1-sEjKgQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to