> 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 rails-oceania+unsubscr...@googlegroups.com. To post to this group, send email to rails-oceania@googlegroups.com. Visit this group at https://groups.google.com/group/rails-oceania. For more options, visit https://groups.google.com/d/optout.