Patrick R. Michaud wrote:
Personally, I would think that the standard approach for going from a String PMC to a method invocation would be via the find_method opcode. But that's just me.
That goes back to the philosophical question of "Is PIR a language to be generated by compilers, or is it a language for humans to use?" It's about half-way in between at the moment, and the conflict shows.
For generated code, it's no problem to require a methodname lookup for every call. For hand-written code it's insanely annoying (which is the reason the syntactic sugar was introduced in the first place).
Perhaps PIR's next stage of evolution is to split off into two languages, one for generation and one for humans.
Allison