> What’s the thing where the parser has to check local usage to decide
> syntax?
>
The parser tracks locals so it can generate LVAR or VCALL nodes:
def f1
g = whatever
g # LVAR node
end
def f2
g # VCALL node
end
This simplifies the next stage (LVAR is always a local, VCALL is always a
method).
The "feature" in this thread is an unfortunate consequence of the
implementation.
Thanks,
Nicholas
--
You received this message because you are subscribed to the Google Groups "Ruby
or Rails Oceania" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/rails-oceania.
For more options, visit https://groups.google.com/d/optout.