~technomancy/fennel#218: 
remove IIFE for method call

This code:

(: (foo) (bar))

Currently compiles to

return (function(tgt, m, ...) return tgt[m](tgt, ...) end)(foo(), bar())

but could compile to something like:

local tgt_1_ = foo()
local m_2_ = bar()
return tgt_1_[m_2_](tgt_1_)
Status
RESOLVED IMPLEMENTED
Submitter
~xerool
Assigned to
Submitted
2 months ago
Updated
a month ago
Labels
next-release output

~technomancy REPORTED IMPLEMENTED a month ago

Added in 65b1e0310e848203e21cfaf6d0e1398b5a038192! Thanks.

Register here or Log in to comment, or comment via email.