error in merl docs?

Led ledest@REDACTED
Sun Jul 26 20:05:22 CEST 2020


>
>
> this seems to be only true if the pare_transform module is disabled or if
> the expression is a literal one. in the more general case parse
> transform further expands expression to the merl:qquote/3 and introduces
> the environment into the expression. at least that is my understanding. if
> i'm correct i believe that referencing merl:qquote/3 would be correct as
> well (or more intuitive).
>
> On Sun, Jul 26, 2020 at 6:07 PM Led <ledest@REDACTED> wrote:
>
>> in the documentation of merl:quote/2 it says "The macro ?Q(Text) expands
>> to merl:quote(?LINE, Text, Env). "
>>
>>>
>>> should this reference merl:qquote/3 instead of merl:quote/3  which to my
>>> knowledge does not exist?
>>>
>>
>> merl.hrl:
>> ...
>> -define(Q(Text), merl:quote(?LINE, Text)).
>> ...
>>
>> --
>> Led.
>>
>
I quoted a line from merl.hrl

-- 
Led.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20200726/3a001dd5/attachment.htm>


More information about the erlang-questions mailing list