Avatar
Kishikawa Katsumi 11/17/2022 8:09 AM
https://forums.swift.org/t/pitch-expression-macros/61499 改めてPitchとProposalが投稿された。 まだコンパイラ本体で試すのは難しいっぽい。 (edited)
Hey all, Following up on the vision for macros from last month, here is a pitch for expression macros. Expression macros are used as expressions in the source code (marked with #) and are expanded into other expressions. Expression macros can have parameters and a result type, much like a function, which describes the effect of the macro expan...