Avatar
Avatar
shiz
Region解析にバグというか穴が2つあるらしくていったん見送られた
そういえば、Function Body Macrosも見送られてましたね。 Limitations of preamble and body macros: While the proposed design for preamble macros makes it possible to inject both prologue and epilogue code using defer, the inability to examine a thrown error or the function's return value were cited as difficult limitations. Lack of closure support: While the Language Steering Group does agree that it would be useful to have this capability, applying function body macros to closures presents a number of unique challenges that do not apply to regular function declarations. For this reason, we are comfortable slicing closures off as a future direction for their own proposal. https://forums.swift.org/t/returned-for-revision-se-0415-function-body-macros/69114
(edited)
ふーむ、なるほど